Skip to content

Fix ShardKey lookup for nested paths. #3591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Conversation

christophstrobl
Copy link
Member

This PR fixes the lookup of shard key values for nested paths using the dot (.) notation.

Closes: #3590

This commit fixes the lookup of shard key values for nested paths using the dot (.) notation.
@christian-german
Copy link

Looks good to me. Especially the way you check the dotted key in the BsonUtils class to not affect performances for the classic not-nested keys

mp911de pushed a commit that referenced this pull request Mar 15, 2021
This commit fixes the lookup of shard key values for nested paths using the dot (.) notation.

Closes: #3590
Original pull request: #3591.
mp911de added a commit that referenced this pull request Mar 15, 2021
Move hasValue(…) from DocumentAccessor to BsonUtils. Fix typo in tests.

See: #3590
Original pull request: #3591.
mp911de pushed a commit that referenced this pull request Mar 15, 2021
This commit fixes the lookup of shard key values for nested paths using the dot (.) notation.

Closes: #3590
Original pull request: #3591.
mp911de added a commit that referenced this pull request Mar 15, 2021
Move hasValue(…) from DocumentAccessor to BsonUtils. Fix typo in tests.

See: #3590
Original pull request: #3591.
mp911de pushed a commit that referenced this pull request Mar 15, 2021
This commit fixes the lookup of shard key values for nested paths using the dot (.) notation.

Closes: #3590
Original pull request: #3591.
mp911de added a commit that referenced this pull request Mar 15, 2021
Move hasValue(…) from DocumentAccessor to BsonUtils. Fix typo in tests.

See: #3590
Original pull request: #3591.
@mp911de
Copy link
Member

mp911de commented Mar 15, 2021

That's merged, polished, and backported now.

@mp911de mp911de closed this Mar 15, 2021
@mp911de mp911de deleted the issue/3590 branch March 15, 2021 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embedded sharding keys are not correctly picked up from the shardKeySource Document
3 participants