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

64 KiB != 64 KB #38730

Closed
black-snow opened this issue Nov 29, 2024 · 3 comments
Closed

64 KiB != 64 KB #38730

black-snow opened this issue Nov 29, 2024 · 3 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@black-snow
Copy link

  • Package Name: azure-data-tables
  • Package Version: 12.5.0
  • Operating System: macOS 15
  • Python Version: 3.12.7

Describe the bug
https://learn.microsoft.com/en-us/rest/api/storageservices/Understanding-the-Table-Service-Data-Model?redirectedfrom=MSDN#property-types states a limit of "64 KiB" for columns, especially for strings and bytes.
But when I try to store 65536 bytes I am answered with

The property value exceeds the maximum allowed size (64KB). [...]

64 KiB = 65,536 bytes
64 KB = 64,000 bytes

So apparently the correct answer is 64 KB and the documentation is wrong.

To Reproduce
Steps to reproduce the behavior:

  1. generate a payload of 65,536 bytes (or a string of the same size)
  2. table_client.create_entity(entity=entity)

Expected behavior
As the response comes from the server this rather seems to be a documentation issue than an issue w/ the SDK.
So the docs should be updated.

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 29, 2024
@black-snow
Copy link
Author

black-snow commented Nov 29, 2024

/edit: got the encoding wrong - Table uses UTF-16 - so 65_536 seems to be correct, i.e., 64 KiB, i.e., the docs are correct but the error response is not!

@black-snow
Copy link
Author

Actually, my test against Azurite it green but the live thing is not. Might be an issue w/ Azurite.

@black-snow
Copy link
Author

Closing in favor of Azure/Azurite#2510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

1 participant