[CQF] Conjunction with predicates over the same field does not match documents where the field is an array

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • QE 2022-07-11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Although it looks like a contradiction at a glance, the query

      {$and: [{a: 1}, {a: 2}]}
      

      Matches the document

      {a: [1, 2]}

      as each predicate is applied after implicitly traversing the leaf array. This query works on classic but does not return the matching document with Bonsai enabled.

      The relevant test is here ($all is sugar for $and).

            Assignee:
            Svilen Mihaylov (Inactive)
            Reporter:
            Nicholas Zolnierz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: