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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 6.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL

    Description

      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().

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: