[SERVER-49214] Add $toHashedIndexKey expression Created: 30/Jun/20 Updated: 29/Jan/24 Resolved: 03/Aug/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0, 4.4.10, 4.2.24 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Janna Golden | Assignee: | Kshitij Gupta |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | PM-234-M2, PM-234-T-data-clone, PM-234-T-new-split | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||||||||||
| Backport Requested: |
v4.4, v4.2
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Sprint: | Sharding 2020-07-13, Sharding 2020-06-29, Sharding 2020-07-27, Sharding 2020-08-10 | ||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Syntax:
Add a new aggregation expression that computes the hash of the input expression using the hash function used to create a hashed index. The expression's evaluate method should pass each element of the input parameter to BSONElementHasher::hash64 with seed DEFAULT_HASH_SEED. If the input expression evaluates to null or missing, still hash this value to mimic MongoDB indexing behavior. This will be used as a part of determining new initial split points when resharding a collection. |
| Comments |
| Comment by Githook User [ 24/Jan/23 ] |
|
Author: {'name': 'Kshitij Gupta', 'email': 'kshitij.gupta@mongodb.com', 'username': 'kshitijng'}Message: (cherry picked from commit d57e17494ceade881013e2e99606cc92d4a38605) |
| Comment by Githook User [ 24/Jan/23 ] |
|
Author: {'name': 'Kshitij Gupta', 'email': 'kshitij.gupta@mongodb.com', 'username': 'kshitijng'}Message: (cherry picked from commit 846d3b8216afeed5006ae2de5f7b254631e3ab49) |
| Comment by Githook User [ 21/Sep/21 ] |
|
Author: {'name': 'Kshitij Gupta', 'email': 'kshitij.gupta@mongodb.com', 'username': 'kshitijng'}Message: (cherry picked from commit d57e17494ceade881013e2e99606cc92d4a38605) |
| Comment by Githook User [ 21/Sep/21 ] |
|
Author: {'name': 'Kshitij Gupta', 'email': 'kshitij.gupta@mongodb.com', 'username': 'kshitijng'}Message: (cherry picked from commit 846d3b8216afeed5006ae2de5f7b254631e3ab49) |
| Comment by Githook User [ 03/Aug/20 ] |
|
Author: {'name': 'Kshitij Gupta', 'email': 'kshitij.gupta@mongodb.com', 'username': 'kshitijng'}Message: |
| Comment by Githook User [ 03/Aug/20 ] |
|
Author: {'name': 'Kshitij Gupta', 'email': 'kshitij.gupta@mongodb.com', 'username': 'kshitijng'}Message: |
| Comment by Janna Golden [ 30/Jun/20 ] |
|
Awesome, thank you charlie.swanson! |