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

Remove unneeded Cosmos 3-value logic compensation for InExpression #33899

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

roji
Copy link
Member

@roji roji commented Jun 4, 2024

NOTE: This PR is based on top of #33895, review 2nd commit only

Closes #31063

@roji roji requested a review from a team June 4, 2024 14:36
@@ -1969,7 +1968,7 @@ public override Task Contains_with_local_collection_empty_inline(bool async)
"""
SELECT c
FROM root c
WHERE ((c["Discriminator"] = "Customer") AND NOT((true = false)))
WHERE ((c["Discriminator"] = "Customer") AND NOT(false))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost a good translation now 😆

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, there's still a ways to go... :)

The real question here IMHO is how to e.g. implement optimizations without being forced to fully re-implement everything for each provider (relational, Cosmos...) - that simply doesn't scale... I have some thoughts on it for down the road...

@roji roji force-pushed the RemoveCosmosInNullability branch from c46500e to f020387 Compare June 5, 2024 08:14
@roji roji force-pushed the RemoveCosmosInNullability branch from f020387 to 4e3c531 Compare June 5, 2024 13:10
@roji roji merged commit e62a2cb into dotnet:main Jun 5, 2024
7 checks passed
@roji roji deleted the RemoveCosmosInNullability branch June 5, 2024 13:58
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.

Cosmos: remove null semantics compensation for InExpression
2 participants