Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-100733

Histogram fails to load from disk with undefined value

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      db.c.drop()
      // This must be done in mongo shell, not mongosh which will convert undefined to null
      db.c.insert({a: undefined})
      db.runCommand({analyze: 'c', key: 'a'})
      db.adminCommand({setParameter: 1, planRankerMode: "histogramCE"})
      db.c.find({a: 1})
      
      Error: error: {
          "ok" : 0,
          "errmsg" : "Error getting histograms for path test.c : aString bsonUndefined is not convertable to SBE type tag.",
          "code" : 6660600,
          "codeName" : "Location6660600"
      }

      We are able to construct the histogram but unable to construct an in-memory representation of it.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: