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

u64 gets casted to float64 unexpectedly #1385

Closed
waynexia opened this issue Apr 14, 2023 · 2 comments · Fixed by #2892
Closed

u64 gets casted to float64 unexpectedly #1385

waynexia opened this issue Apr 14, 2023 · 2 comments · Fixed by #2892
Labels
C-bug Category Bugs

Comments

@waynexia
Copy link
Member

What type of bug is this?

Unexpected error

What subsystems are affected?

Datanode

What happened?

query: SELECT uint64s FROM all_datatypes WHERE uint64s = 18446744073709551615
cast_scalar_value: UInt64 Float64(18446744073709552000)
thread 'mysql-io-handlers' panicked at 'called `Result::unwrap()` on an `Err` value: QueryExecution { source: Fail to create physical plan: Error during planning: column:Column { relation: Some(Bare { table: "all_datatypes" }), name: "uint64s" } value:Float64(18446744073709552000) is invalid. Caused by: Plan("column:Column { relation: Some(Bare { table: \"all_datatypes\" }), name: \"uint64s\" } value:Float64(18446744073709552000) is invalid") }', src/servers/tests/mod.rs:79:71

What operating system did you use?

Arch Linux with Kernel: 6.2.10-arch1-1

Relevant log output and stack trace

No response

How can we reproduce the bug?

TBD
@tisonkun
Copy link
Collaborator

tisonkun commented Dec 6, 2023

How can we reproduce this issue? I run test_query_prepared locally and it doesn't report an error now.

@waynexia
Copy link
Member Author

waynexia commented Dec 8, 2023

How can we reproduce this issue? I run test_query_prepared locally and it doesn't report an error now.

Thanks for your attention 👍 I've verified this bug is fixed in #1677 and files #2892 to re-enable corresponding case

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

Successfully merging a pull request may close this issue.

2 participants