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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • QO 2023-09-18
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Ben Shteinfeld
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: