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

[CQF] Fix ABT translations for match expressions against MinKey and MaxKey

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL

      Current ABTs fail to match {a: []} when doing db.find({a: {$lte: MaxKey()}). The desired behavior of db.find({a: {$lte: MaxKey()}) should return any and all document, with the field 'a'.

      The suspect issue arises when we choose to traverse the array and make a compare between each element and MaxKey() .

      Instead, the array itself should be compared to MaxKey(), as an empty array satisfies the $lte: MaxKey() requirement. Similar behavior should also be implemented when comparing to MinKey().

            Assignee:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Reporter:
            emily.wang@mongodb.com Emily Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: