Skip to content

Conversation

@Meghana-Palaparthi
Copy link
Contributor

Description

During some of the internal customer (IC3) validation, it was identified that when the Cosmos .Net SDK is initialized with binary encoding, and a DateTimeOffset field is passed in the payload, the serialization layer is unable to parse the field and hence fails the operation.

This PR fixes the serialization gap by extending support to DateTimeOffset type in CosmosDBNewtonsoftWriter

Type of change

Please delete options that are not relevant.

  • ️✅ Bug fix (non-breaking change which fixes an issue)
  • [] New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [] This change requires a documentation update

Closing issues

To automatically close an issue: closes #5473

@kundadebdatta
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

kirankumarkolli
kirankumarkolli previously approved these changes Nov 5, 2025
@kundadebdatta
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kundadebdatta kundadebdatta left a comment

Choose a reason for hiding this comment

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

LGTM.

@kundadebdatta kundadebdatta added auto-merge Enables automation to merge PRs BinaryEncoding binary encoding in .NET sdk labels Nov 10, 2025
@kirankumarkolli
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kundadebdatta
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kirankumarkolli
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kirankumarkolli kirankumarkolli merged commit bc51a09 into Azure:master Nov 15, 2025
22 of 27 checks passed
@kirankumarkolli kirankumarkolli changed the title [Internal] Binary Encoding: Adds support to DateTimeOffset type in CosmosDBNewtonsoftWriter Binary Encoding: Adds support to DateTimeOffset type in CosmosDBNewtonsoftWriter Nov 15, 2025
@Meghana-Palaparthi Meghana-Palaparthi deleted the 5473_add_datetimeoffset_to_cosmosDBToNewtonsoftWriter branch November 18, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge Enables automation to merge PRs BinaryEncoding binary encoding in .NET sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Binary Encoding - Analyze and Fix DateTimeOffset Parsing Issue with .NET SDK Item Operations

3 participants