Ensure shard filtering works as expected when pushing down $group on shard key

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Check that SERVER-92471 and SERVER-92458 work together as expected. E.g. the following:

       

      [{$sort: {shardKey: 1, notShardKey: 1}},
      {$group: {_id: "$shardKey", accum: {$first: "$shardKey"}}}]

      should result in a DISTINCT_SCAN on shardKey_1_notShardKey_1 with isShardFiltering=true.

       

              Assignee:
              Henri Nikku
              Reporter:
              Henri Nikku
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: