Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table max column size for bytes and string wrong (?) #2510

Open
black-snow opened this issue Nov 29, 2024 · 1 comment
Open

Table max column size for bytes and string wrong (?) #2510

black-snow opened this issue Nov 29, 2024 · 1 comment
Assignees
Labels
alignment Alignment between Azurite with Azure Storage production question Further information is requested table-storage Relating to Azurite table storage implementation

Comments

@black-snow
Copy link

It seems like Azurite doesn't properly reflect the max column size restrictions.

https://learn.microsoft.com/en-us/rest/api/storageservices/Understanding-the-Table-Service-Data-Model?redirectedfrom=MSDN#property-types mentions 64 KiB for bytes and strings and my test against Azurite with 65,536 bytes of UTF-16 encoded text is green. Yet, when I test against the real Azure Table API I receive the good old:

The property value exceeds the maximum allowed size (64KB). If the property value is a string, it is UTF-16 encoded and the maximum number of characters should be 32K or less.

So atm it looks to me as if the docs might be wrong an the limit is 64 KB instead (kilo vs. kibi). Will run a test with a 64 KB limit now.

Ref.: Azure/azure-sdk-for-python#38730

@black-snow
Copy link
Author

Tested a 64 KB limit request against the real API and that works. So I'd assume that Azurite follows the docs (KiB) whereas the real API does not (KB).

@black-snow black-snow changed the title Table max column size for bytes and string Table max column size for bytes and string wrong (?) Nov 29, 2024
@blueww blueww added table-storage Relating to Azurite table storage implementation question Further information is requested alignment Alignment between Azurite with Azure Storage production labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alignment Alignment between Azurite with Azure Storage production question Further information is requested table-storage Relating to Azurite table storage implementation
Projects
None yet
Development

No branches or pull requests

3 participants