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

[3.1.x] Query: Cosmos: Generate enum literal/parameter correctly #23448

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

smitpatel
Copy link
Contributor

@smitpatel smitpatel commented Nov 23, 2020

Resolves #20404

Description

When using enum value in a Cosmos query, the query throws rather than giving results back.

Customer Impact

Customers are unable to run queries which need to use enum values. There is no work-around.

How found

Reported my multiple customers on 3.1. We made a similar patch fix for relational providers, and based on feedback we are now bringing this for Cosmos as well.

Test coverage

Added test specifically for queries similar to customer queries. Also enabled existing tests which were using enums but were failing earlier.

Regression?

Not that we know of.

Risk

Low. We are backporting existing fix which went in 5.0 release and has no reported issues with it so far.

@smitpatel smitpatel requested a review from a team November 23, 2020 19:17
@smitpatel
Copy link
Contributor Author

Specifically backporting 0f6b903

@ajcvickers ajcvickers added this to the 3.1.x milestone Nov 23, 2020
@ajcvickers
Copy link
Contributor

Approved by Tactics for 3.1.12. Please wait for the branch to open before merging.

@wtgodbe wtgodbe merged commit d147e9a into release/3.1 Jan 13, 2021
@wtgodbe wtgodbe deleted the smit/pforpatch branch January 13, 2021 17:15
@ajcvickers ajcvickers removed this from the 3.1.12 milestone Jan 14, 2021
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.

5 participants