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

'varint' and 'decimal' scylla types does`t work properly as a maps key. #405

Open
illia-li opened this issue Aug 14, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@illia-li
Copy link
Contributor

gocql data parsing from scylla defines 'varint' scylla type as 'big.Int' go type.
big.Int not compareble.
Not compareble types can`t be as a maps key.
gocql got out of the situation by create pointer on big.Int.
This led to the fact that a maps key - pointer, not a big.Int.
With 'decimal' same situation because gocql defines 'decimal' as inf.Dec go type, which contains big.Int.

@roydahan
Copy link
Collaborator

@dkropachev how easy to fix?

@dkropachev
Copy link
Collaborator

@dkropachev how easy to fix?

This fix is too complicated, i won't merge it.
I am working on another one, that is less crazy, but still on the line.

@fruch fruch added the bug Something isn't working label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants