Skip to content
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

[release/9.0] Properly implement support for Cosmos hierarchical partition keys #34560

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

roji
Copy link
Member

@roji roji commented Aug 28, 2024

Fixes #34553
Backport of #34557

Description

One of the major Cosmos provider features introduced in EF Core 9.0 is the support for hierarchical partition keys. Unfortunately, an important part of the design was misunderstood, and the current implementation requires all parts of the hierarchical partition key to be provided by the user; where the major reason for using hierarchical partition keys is precisely to specify only some of the values, limiting the number of partitions that need to be scanned.

Customer impact

Users can't properly use the new hierarchical partition keys feature in Cosmos, which is a high-value 9.0 feature.

How found

During validation

Regression

No, new feature.

Testing

Added/adjusted in the PR.

Risk

Low. The code modified is in any case completely new in 9.0 - this fixes a new feature.

@roji roji requested a review from ajcvickers August 28, 2024 23:22
@roji roji added the tell-mode label Aug 28, 2024
@roji
Copy link
Member Author

roji commented Aug 28, 2024

/cc @artl93

@roji roji merged commit d01876b into dotnet:release/9.0 Aug 29, 2024
7 checks passed
@roji roji deleted the release/9.0 branch August 29, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants