[SERVER-78144] [CQF] Lowering for FunctionCall [shardFilter] Created: 15/Jun/23  Updated: 29/Oct/23  Resolved: 21/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Ben Shteinfeld Assignee: Richard Hausman (Inactive)
Resolution: Fixed Votes: 0
Labels: auto-reverted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Sprint: QO 2023-07-10, QO 2023-07-24
Participants:
Linked BF Score: 0

 Description   

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.



 Comments   
Comment by Githook User [ 20/Jul/23 ]

Author:

{'name': 'Richard Hausman', 'email': 'richard.hausman@mongodb.com', 'username': 'rhausman'}

Message: SERVER-78144 : Add shardFilter lowering for Bonsai
Branch: master
https://github.com/mongodb/mongo/commit/5ed6e9b5e42bbeea387b26dd335bde9b43ba0055

Comment by xgen-buildbaron-user [ 20/Jul/23 ]

Ticket re-opened due to revert. run_unittests began a consistent failure of build/install/bin/abt_lowering_test

Comment by Githook User [ 20/Jul/23 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}

Message: Revert "SERVER-78144 : Add shardFilter lowering for Bonsai"

This reverts commit dd736a7dded1d3a1a2977592d64b2650fb2806f4.
Branch: master
https://github.com/mongodb/mongo/commit/fe16c9956d9e2827d9c229cd974b0a905c0a2766

Comment by Githook User [ 19/Jul/23 ]

Author:

{'name': 'Richard Hausman', 'email': 'richard.hausman@mongodb.com', 'username': 'rhausman'}

Message: SERVER-78144 : Add shardFilter lowering for Bonsai
Branch: master
https://github.com/mongodb/mongo/commit/dd736a7dded1d3a1a2977592d64b2650fb2806f4

Generated at Thu Feb 08 06:37:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.