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

Cosmos: add translations for date/time components #33976

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

roji
Copy link
Member

@roji roji commented Jun 12, 2024

Also add translation for Nullable<T>.Value, and do some cleanup on the SQL Server/SQLite translators.

Closes #33975

@roji roji requested a review from a team June 12, 2024 22:48
WHERE ((c["Discriminator"] = "Order") AND (c["OrderID"] < 10300))
""");
});
=> Assert.ThrowsAsync<InvalidOperationException>(() => base.Projection_containing_DateTime_subtraction(async));
Copy link
Member Author

Choose a reason for hiding this comment

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

This test was passing via client evaluation (final Select), but now that we translate o.OrderDate.Value, we attempt to actually translate the DateTime subtraction and fail. We can try to make that translation work via DateTimeDiff later.

@roji roji enabled auto-merge (squash) June 12, 2024 22:51
@roji roji merged commit 5eec6fa into dotnet:main Jun 14, 2024
7 checks passed
@roji roji deleted the CosmosDateTime branch June 14, 2024 07: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: translate date/time component members/methods
2 participants