-
Notifications
You must be signed in to change notification settings - Fork 623
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
CASSGO-2 Marshal big int returns variable length slice #1823
base: trunk
Are you sure you want to change the base?
CASSGO-2 Marshal big int returns variable length slice #1823
Conversation
Please squash and format your commit message following the rules stated in CONTRIBUTING.md and add this JIRA to the We need another committer +1 to merge this. |
3ccfdfd
to
e8a930c
Compare
How could I get one more committer's approval? |
I've been trying to call out on the #cassandra-drivers ASF slack channel that we need another committer to look at these PRs but so far I haven't been successful. You could try reaching out to committers directly too. |
It looks like some unit tests are failing |
The marshalBigInt return 8 bytes slice in all cases except for big.Int, which returns a variable length slice, but should be 8 bytes slice as well. patch by Mykyta Oleksiienko; reviewed by João Reis for CASSGO-2
e8a930c
to
a015fbb
Compare
Thank you very much! |
Closes #1740
Currently, gocql supports arbitrary-precision type big.Int, but in Cassandra the bigint is implemented as an eight-byte two's complement integer (see Data Type Serialization Formats).
Fixed this issue in the PR, and added a few tests to cover changes.