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] Fix Cosmos enum partition keys #34922

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

roji
Copy link
Member

@roji roji commented Oct 16, 2024

Fixes #34911

Description
Among the many changes done to the Cosmos provider in 9.0, the logic for handling partition keys was rewritten; the new logic fails to handle enum constants properly - these require special handling because of how the C# compiler produces expression trees around enums.

Customer impact
When an enum property is used as a partition key, queries filtering on that property fail to execute (this is expected to be a relatively common scenario).

How found
Customer reported on 9.0.0-rc.2

Regression
Yes

Testing
Added.

Risk
Very low.

@AndriySvyryd AndriySvyryd merged commit 4147693 into dotnet:release/9.0 Oct 17, 2024
7 checks passed
@roji roji deleted the CosmosEnumPk branch October 17, 2024 05:49
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