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

StringPartitionKeyComponent limits the key length to 100 chars #63

Closed
chetanmeh opened this issue Aug 30, 2018 · 7 comments
Closed

StringPartitionKeyComponent limits the key length to 100 chars #63

chetanmeh opened this issue Aug 30, 2018 · 7 comments
Labels

Comments

@chetanmeh
Copy link
Contributor

StringPartitionKeyComponent truncates the key to 100 chars.

Per docs the maximum length for id field is 255 chars. However I was not able to find any documented limit for partition key. Closest reference found here mentions

The length of RowKey is 255 bytes and the length of PartitionKey is 1 KB.

Can this limit in StringPartitionKeyComponent be set to 255 at least? Due to current truncation I get error PartitionKey extracted from document doesn't match the one specified in the header as the id field in document being added has length say 120 chars while one passed in header is truncated to 100.

@moderakh
Copy link
Contributor

@chetanmeh thanks for reporting this. We have a fix for this, which should get released along some other improvements in a week or so. We are code complete, just final review, testing.

@moderakh moderakh added the bug label Aug 30, 2018
@chetanmeh
Copy link
Contributor Author

@moderakh Good to know that its under fix. Just to unblock myself for now would it be fine to just bump the limit locally assuming the limit for PartitionKey is >= 255 or there is more to this issue

@moderakh
Copy link
Contributor

@chetanmeh no. that won't work.

@chetanmeh
Copy link
Contributor Author

Thanks for confirming. Would then look for next release

@moderakh
Copy link
Contributor

moderakh commented Sep 6, 2018

@moderakh moderakh closed this as completed Sep 6, 2018
@chetanmeh
Copy link
Contributor Author

@moderakh Should the test create key with length 255 as thats the max limit. So far keys upto 100 work as expected as that was the earlier limit in StringPartitionKeyComponent

@chetanmeh
Copy link
Contributor Author

Ignore the previous comment. Now see that test case was building with 2-3 chars per iteration. Also looks like 255 limit is only for id. For partition key the limit looks much higher (probably 1 KB).

So it works fine now !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants