You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] eval returns integer division result instead of decimal #3946
Activity
LantaoJin commentedon Aug 11, 2025
In most database, 5/10 should return 0 instead of 0.5. User should change to 5.0/10 or 5d/10 for example.
penghuo commentedon Sep 23, 2025
Spark results is expected.
spark-sql (default)> select 4/2, 2/4, 2/40;
(4 / 2) (2 / 4) (2 / 40)
2.0 0.5 0.05
Time taken: 0.046 seconds, Fetched 1 row(s)