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

[CQF] Lowering for FunctionCall [shardFilter]

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • QO 2023-07-10, QO 2023-07-24
    • 0

      Once the optimizer starts generating physical plans which perform shard filtering, we will need to update the lowering code to generate the corresponding SBE plan.

      The ABT representation is an n-ary FunctionCall, with each parameter corresponding to a Variable representing a field of the shard key. The SBE representation is a 2-arg function with the first parameter pointer to a slot in the runtime environment representing the ShardFilterer and the second parameter being an expression evaluating to a BSONObj representing the shard key.

            Assignee:
            richard.hausman@mongodb.com Richard Hausman (Inactive)
            Reporter:
            ben.shteinfeld@mongodb.com Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: