Expect Azurite to fail when inserting doubles greater than MAX_VALUE but succeeds instead #2387
Labels
alignment
Alignment between Azurite with Azure Storage production
bug
Something isn't working
table-storage
Relating to Azurite table storage implementation
Which service(blob, file, queue, table) does this issue concern?
Table storage
Which version of the Azurite was used?
Azurite 3.29.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm
What's the Node.js version?
v18.15.0
What problem was encountered?
When using azurite emulated table storage, entities that have a property of type
Edm.Double
who's value is greater than theMAX_VALUE
can be upserted successfully, whereas with Azure Table Storage this operation will fail with "InvalidInput: An error occurred while processing this request."When inserted into emulated table storage, the value of the property in azurite will also be
null
.This causes a problem when trying to query/list entities in the table. There will be an error when trying to parse the response body with something similar to:
Steps to reproduce the issue?
Create an entity with a property that has the type
Edm.Double
and a value of the string13e7705
.Try upserting the entity into Azurite table storage.
Expect the operation to fail, however it succeeds.
Have you found a mitigation/solution?
Have azurite emulate the behavior of table storage and throw an error when trying to insert a number greater than
MAX_VALUE
.The text was updated successfully, but these errors were encountered: