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
long is not sufficient for 2i integer indices #402
Comments
Using That said, the new Java client does not have this restriction. We only emphasize using If you look at the query builder in core you'll note that the parameters are all On the object side, I just looked at the user-level API |
good news, thanks! |
I was actually working with this code and figured ... why not support it directly. It wasn't more than 30 mins of work. |
Since I was working with this code, it was an easy addition to provide BigInteger support. This commit adds BigInteger support to the @RiakIndex annotation and to the user and core API. Resolves #402
The riak interface for integer 2i does not specify an upper limit for possible index values (and I tested it with 2^1024 and it works for both exact and range queries), so having a long in the API is not sufficient.
There should be an arbitrary-precision integer used, if possible. I realise this results in an API change, but as 2.0 is not final yet, this may be bearable.
Corresponding tickets:
basho-labs/riak-data-migrator#11 (where I located the problem)
#112 (where you switched from int to long)
The text was updated successfully, but these errors were encountered: