[SERVER-75752] Pass collator to ArraySet for $in expression Created: 06/Apr/23  Updated: 29/Oct/23  Resolved: 14/Apr/23

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

Type: Bug Priority: Major - P3
Reporter: Ivan Fefer Assignee: Ivan Fefer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
Related
related to SERVER-76007 ArraySet with collation doesn't lever... Backlog
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: QE 2023-04-17
Participants:
Linked BF Score: 35

 Description   

In sbe_stage_builder_filter.cpp where we create a hash set for $in arguments, we don't pass collator to it.
This leads to linear lookup in vm.cpp

 



 Comments   
Comment by Githook User [ 19/Apr/23 ]

Author:

{'name': 'Ivan Fefer', 'email': 'ivan.fefer@mongodb.com', 'username': 'Fefer-Ivan'}

Message: SERVER-75752 Use stable collator interface pointer for ArraySet for $in equalities
Branch: v7.0
https://github.com/mongodb/mongo/commit/923056851d7fb5889410ec6f96df040733be0a59

Comment by Ivan Fefer [ 14/Apr/23 ]

As we are enabling SBE fully in 7.0, I would like to backport this fix

Comment by Githook User [ 13/Apr/23 ]

Author:

{'name': 'Ivan Fefer', 'email': 'ivan.fefer@mongodb.com', 'username': 'Fefer-Ivan'}

Message: SERVER-75752 Use stable collator interface pointer for ArraySet for $in equalities
Branch: master
https://github.com/mongodb/mongo/commit/c93a58facc2214871fcdef35dcac9c704612b2d2

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