[CQF] Dotted path equality to null incorrectly matches non-object array elements

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The following query incorrectly returns the one document when run through CQF:

      coll.insert({a: [5]});
      assert.eq(0, coll.find({'a.b': null}).itcount());
      

      The semantics are that if the leading path resolves to an object, then the `b` field of that object must be null/missing. But in this case, the leading path `a` does not find an object even with implicit array traversal so the command should return 0 documents.

      The existing test that exercises this is here.

              Assignee:
              [DO NOT USE] Backlog - Query Optimization
              Reporter:
              Nicholas Zolnierz
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: