Histogram fails to load from disk with undefined value

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • 3
    • 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
              Reporter:
              Ben Shteinfeld
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: