[SERVER-59016] Make $min/$max translation in SBE collation aware Created: 02/Aug/21  Updated: 29/Oct/23  Resolved: 03/Sep/21

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

Type: Task Priority: Major - P3
Reporter: Eric Cox (Inactive) Assignee: Irina Yatsenko (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: QE 2021-08-23, QE 2021-09-06, QE 2021-09-20
Participants:
Linked BF Score: 18

 Description   

In the work in SERVER-57551 we realized that $min/$max can use a collatorInterface if one is available on the ExpressionContext. In order to support $min/$max over string values in SBE we can use aggCollMin and aggCollMax aggregation functions instead of aggMin/Max.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 06/Sep/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-59016 fix xcode 12.4 warnings

See similar fix applied to safe_num_test.cpp in commit ebf3af24d79133eddc61309d85f4267b69795d79.
Branch: master
https://github.com/mongodb/mongo/commit/14cd773a0334ad890c6755f11cadb50555884008

Comment by Githook User [ 03/Sep/21 ]

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-59016 Make min and max SBE accumulators collation aware
Branch: master
https://github.com/mongodb/mongo/commit/6fff22b45e500c5b26317cc536fa9b73bfe72b6b

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