-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
result convert to float automatically #3963
Comments
I don't think it's reasonable, not all users want float instead of integer in any scenes. |
But a indicator caculated like that is just wrong. |
You could check this in SQL: SELECT 1/2,1.0/2 You could play with it from here: https://sqliteonline.com/ |
Well, I'm using hive, and hive returns 0.5. |
Aha, thanks @wjcnoob for letting me know it's actually quite normal to treat Could you please add (root@nebula) [basketballplayer]> RETURN toFloat(24)/48
+------------------+
| (toFloat(24)/48) |
+------------------+
| 0.5 |
+------------------+
Got 1 rows (time spent 905/23873 us)
Thu, 03 Mar 2022 09:42:09 CST Thanks again!!! |
Of course, it's understandable |
Thank you @wjcnoob ! |
Introduction
return 24/48
output: 0
Contents
It would be great if the result could be automatically converted to float instead of adding toFloat() every time
Related work
The text was updated successfully, but these errors were encountered: