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

histogramCE: Location6660505 "Must have bucket boundary on last value"

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible

      This error seems to happen if the number of distinct types in the column is greater than the numberBuckets.

      db.foo.drop();
      db.foo.insert([{ a: 1 }, { a: 2 }, { a: 3}, { a: 'a'}]);
      
      db.foo.runCommand({analyze: "foo", key: "a", numberBuckets: 2});
      
      MongoServerError[Location6660505]: PlanExecutor error during aggregation :: caused by :: Must have bucket boundary on last value 

            Assignee:
            matt.olma@mongodb.com Matt Olma
            Reporter:
            philip.stoev@mongodb.com Philip Stoev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: