Skip to content

Commit 2f182e6

Browse files
authored
Support dboule.NaN (Azure#24140)
1 parent a80438c commit 2f182e6

26 files changed

+3199
-332
lines changed

sdk/tables/Azure.Data.Tables/src/Extensions/DictionaryTableExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ internal static void CastAndRemoveAnnotations(this IDictionary<string, object> e
9191
TableConstants.Odata.EdmDateTime => DateTimeOffset.Parse(entity[annotation] as string, CultureInfo.InvariantCulture, DateTimeStyles.RoundtripKind),
9292
TableConstants.Odata.EdmGuid => Guid.Parse(entity[annotation] as string),
9393
TableConstants.Odata.EdmInt64 => long.Parse(entity[annotation] as string, CultureInfo.InvariantCulture),
94+
TableConstants.Odata.EdmDouble => double.Parse(entity[annotation] as string, CultureInfo.InvariantCulture),
9495
_ => throw new NotSupportedException("Not supported type " + typeAnnotationsWithKeys[annotation])
9596
};
9697

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/StronglyTypedModelDoubleNaNRoundTrips.json

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/tables/Azure.Data.Tables/tests/SessionRecords/TableClientLiveTests(CosmosTable)/StronglyTypedModelDoubleNaNRoundTripsAsync.json

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)