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
At the moment, DataFusion casts floats to integers using the floor function. Is it possible to configure this behavior?
select cast(2.8 as int) as result; +--------+ | result | +--------+ | 2 | +--------+
This way work Postgresql and MySQL.
select cast(2.8 as int) as result; +--------+ | result | +--------+ | 3 | +--------+
The text was updated successfully, but these errors were encountered:
I think we would need to support configuration in arrow-rs first. The actual casting is here https://github.com/apache/arrow-rs/blob/e28cf44e65cdd1fefaa1b857ca4336e7a9da5d06/arrow-cast/src/cast/mod.rs#L2177
Sorry, something went wrong.
LIMIT
No branches or pull requests
At the moment, DataFusion casts floats to integers using the floor function.
Is it possible to configure this behavior?
Actual
Expected
This way work Postgresql and MySQL.
The text was updated successfully, but these errors were encountered: