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

createPredicatesOnBucketLevelField with $in should be treated like $or

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker - P1 Blocker - P1
    • 5.3.0
    • 5.3.0
    • None
    • Fully Compatible
    • ALL

    Description

      It's possible that the children of an $in match expression cannot be translated to a predicate on a bucket-level field, e.g. when the children are object- or array-valued. In those cases, we should do what we do for the $or case: mark the entire $in as "always true", rather than inserting potentially null predicates as its translated children.

      Attachments

        Activity

          People

            hana.pearlman@mongodb.com Hana Pearlman
            hana.pearlman@mongodb.com Hana Pearlman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: