Skip to content

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

Merged
roji merged 1 commit intodotnet:mainfrom
roji:RemoveCosmosInNullability
Jun 5, 2024
Merged

Remove unneeded Cosmos 3-value logic compensation for InExpression #33899
roji merged 1 commit intodotnet:mainfrom
roji:RemoveCosmosInNullability

Conversation

@roji
Copy link
Copy Markdown
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
SELECT c
FROM root c
WHERE ((c["Discriminator"] = "Customer") AND NOT((true = false)))
WHERE ((c["Discriminator"] = "Customer") AND NOT(false))
Copy link
Copy Markdown
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
Copy Markdown
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
@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