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
No operation greater between Decimal(9, 2) and Float64 #22626
Describe the bug
It's not possible to compare Decimal and Float values. But actually both of them point to some specific value on real number line, so we can compare and that wouldn't produce any precision loss.
How to reproduce
Clickhouse 21.5
SELECT toDecimal32('11.00', 2) > 1.
Query id: f2c1cba1-748e-42ea-83ac-e117b542d576
0 rows in set. Elapsed: 0.002 sec.
Received exception from server (version 21.5.1):
Code: 43. DB::Exception: Received from localhost:9000. DB::Exception: No operation greater between Decimal(9, 2) and Float64: While processing toDecimal32('11.00', 2) > 1..
Activity
UnamedRus commentedon Apr 4, 2021
Probably should be not a bug, but a feature.