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

Float type (float32) is shown and compared as a 64-bit number instead of 32-bit #415

Closed
roydahan opened this issue Dec 18, 2023 · 3 comments

Comments

@roydahan
Copy link
Collaborator

roydahan commented Dec 18, 2023

While investigating this issue: scylladb/scylladb#11103, It looks like the problem comes from Gemini and not from Scylla and for float32 we should expect the shorter version of the number.

I think that the root cause (or at least how we print it) comes from this line:

replacement = fmt.Sprintf("%.2f", value[0])

Do we treat float and double the same as we want to print them?

@roydahan
Copy link
Collaborator Author

@dkropachev can you please take a loot at this?

@dkropachev
Copy link
Collaborator

@roydahan , thanks for reporting, gemini has bug that makes it fail to compare maps with complex data types on keys, such as big.Int inf.Dec... etc.

Which is exactly root cause of scylladb/scylladb#11103
I am working on fix, it is going to be ready soon.scylladb/scylladb#11103

@dkropachev
Copy link
Collaborator

Dup of #405

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

No branches or pull requests

2 participants