Skip to content

Apply fix from #34729 to Cosmos SqlExpressionFactory to keep it in sync#34964

Merged
maumar merged 1 commit intodotnet:mainfrom
ChrisJollyAU:34618cosmos
Feb 7, 2025
Merged

Apply fix from #34729 to Cosmos SqlExpressionFactory to keep it in sync#34964
maumar merged 1 commit intodotnet:mainfrom
ChrisJollyAU:34618cosmos

Conversation

@ChrisJollyAU
Copy link
Contributor

From discussion in #34729

Add that fix to the Cosmos SqlExpressionFactory to keep in sync with the relational version

Note that related tests for Cosmos still fail due to #34963

@roji Actually not sure if this is entirely needed. From the other issue in relational databases, left.Type is an object because it leaves the unary convert (with Type of object) around. Cosmos strips the convert out and just leaves the operand which generally already has a Type and Type mapping.

@maumar maumar merged commit 5c2afbb into dotnet:main Feb 7, 2025
7 checks passed
@maumar
Copy link
Contributor

maumar commented Feb 7, 2025

Thank you for the contribution! @ChrisJollyAU

@ChrisJollyAU ChrisJollyAU deleted the 34618cosmos branch February 7, 2025 18:12
@ChrisJollyAU
Copy link
Contributor Author

@maumar See also #35000. I think I already used this as part of that PR. That then fixes the tests mentioned in this that don't work (plus others)

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.

3 participants