[SERVER-41750] Refactor renamedPaths() helpers to support renames in either direction Created: 14/Jun/19  Updated: 29/Oct/23  Resolved: 28/Jun/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: George Wangensteen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-5477 when sharded, no need to merge groups... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Query 2019-07-01
Participants:

 Description   

During development of SERVER-5477 we realized that we have many of the utilities necessary to track whether the shard key is preserved throughout the pipeline up until the first $group, but these helpers we developed to work backwards through a pipeline (for use in $merge optimizations).

We should add a library that can compute the new names of fields in either direction. It should be able to answer both:

  • Given the paths which represent the shard key before this stage, where are the values that represent the shard key after this stage's transformation takes effect?
  • Given the paths which represent the shard key after this stage, where are the values that represent the shard key before this stage's transformation takes effect?


 Comments   
Comment by Githook User [ 28/Jun/19 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@10gen.com'}

Message: SERVER-41750 refactor renamed paths API.
Branch: master
https://github.com/mongodb/mongo/commit/b651ed3dc6ae61332bb3193afef1cfa41bf5df53

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