datafusion
datafusion copied to clipboard
Make Eq with negative float zero compat with other engines
Describe the bug
DF returns false below and is not compliant with major engines:
DataFusion CLI v39.0.0
> select 0.0 == -0.0;
+--------------------------+
| Float64(0) = Float64(-0) |
+--------------------------+
| false |
+--------------------------+
Similar issue #11051
To Reproduce
No response
Expected behavior
No response
Additional context
No response
Isn't this done in Arrow? Because Binary Eq calls arrow::compute::kernels::cmp::eq
So I think we should do exactly what the docs say and normalize zeros?