jstest + design: $match with $expr must not push down through $group when fields introduced by group

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Companion artifact for SERVER-112772 ($expr predicates incorrectly pushed before $group → wrong results).

      5-case jstest derives expected output by running $group then JS-filtering (planner-choice-agnostic). Continuation chain: SERVER-91102 / SERVER-102698. Fix: subtract `_id`-compound-paths + accumulator-output names from pushdown dependency set.

      Files in worktree mongo-w4-9:

      • jstests/aggregation/sources/group/expr_match_no_pushdown_through_group.js (188 lines)
      • src/mongo/db/pipeline/SERVER-112772-design.md

      Status: Draft.

            Assignee:
            Unassigned
            Reporter:
            Mehar Grewal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: