Skip to content

Cosmos: add translations for date/time components#33976

Merged
roji merged 1 commit intodotnet:mainfrom
roji:CosmosDateTime
Jun 14, 2024
Merged

Cosmos: add translations for date/time components#33976
roji merged 1 commit intodotnet:mainfrom
roji:CosmosDateTime

Conversation

@roji
Copy link
Copy Markdown
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
Copy Markdown
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
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