Skip to content

[release/9.0] Nanoseconds and microseconds processing fix on Cosmos#34901

Merged
maumar merged 1 commit intodotnet:release/9.0from
cincuranet:cosmos-nanoseconds-bugfix
Oct 14, 2024
Merged

[release/9.0] Nanoseconds and microseconds processing fix on Cosmos#34901
maumar merged 1 commit intodotnet:release/9.0from
cincuranet:cosmos-nanoseconds-bugfix

Conversation

@cincuranet
Copy link
Copy Markdown
Contributor

@cincuranet cincuranet commented Oct 14, 2024

Backport of #34861. For Cosmos only because Cosmos already had the support.

Description

In Cosmos provider for EF Core 9 we improperly translated Nanosecond and Microsecond properties leading into mismatch between expected .NET behavior and what was actually done in database. This is a new functionality in 9.0.

Customer impact

Incorrect data returned from query. Possible data corruption bug.

How found

Found while implementing same support for SQL Server.

Regression

No.

Testing

Tests added (in main covering bigger area).

Risk

Low.

@cincuranet cincuranet requested a review from a team October 14, 2024 16:31
Copy link
Copy Markdown
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

Thanks for fixing, this was my bug.

@SamMonoRT
Copy link
Copy Markdown
Member

approved via email

@maumar maumar merged commit 63c9bf9 into dotnet:release/9.0 Oct 14, 2024
@cincuranet cincuranet deleted the cosmos-nanoseconds-bugfix branch October 15, 2024 07:45
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.

4 participants