We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Casting a DOUBLE as a FLOAT truncates all decimal digits
opensearchsql> select typeof(3.14); fetched rows / total rows = 1/1 +----------------+ | typeof(3.14) | |----------------| | DOUBLE | +----------------+ opensearchsql> select CAST(3.14 as FLOAT); fetched rows / total rows = 1/1 +-----------------------+ | CAST(3.14 as FLOAT) | |-----------------------| | 3.0 | +-----------------------+
Casted value should have as many digits as possible.
2.x @ 99cebe3
2.x
Opened on behalf of @kylepbit
The text was updated successfully, but these errors were encountered:
FLOAT
DOUBLE
Successfully merging a pull request may close this issue.
What is the bug?
Casting a DOUBLE as a FLOAT truncates all decimal digits
How can one reproduce the bug?
What is the expected behavior?
Casted value should have as many digits as possible.
What is your host/environment?
2.x
@ 99cebe3Do you have any additional context?
Opened on behalf of @kylepbit
The text was updated successfully, but these errors were encountered: