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

[CQF] Add assertions that shard key is non-multikey

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-09-18

    Description

      The sharding subsystem ensures that the index backing a shard key (or the prefix of such an index) is non-multikey. This is make it clear which shard owns a particular document. There are some assumptions in the cascades rewrites that rely on this fact.

      To avoid accidentally writing a unit test or translating a shard key in correctly, we should assert that the shard key provided to the optimizer metadata is non-multikey.

      Attachments

        Activity

          People

            ben.shteinfeld@mongodb.com Ben Shteinfeld
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: