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
Is your feature request related to a problem or challenge?
In Datafusion, +NaN and -NaN are distinguished as well as +0.0 and -0.0.
For example, asin(10) returns NaN but 'inf'::DOUBLE / 'inf'::DOUBLE returns -NaN. 3.0 * 0 returns 0.0 but -3.0 * 0 returns -0.0.
So, users need to determine NaN and 0.0 like as follows.
SELECT ... WHERE x = 'NaN'::DOUBLE OR x = -'NaN'::DOUBLE;
To avoid such boilerplate code, I propose to add isnan and iszero.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem or challenge?
In Datafusion,
+NaN
and-NaN
are distinguished as well as+0.0
and-0.0
.For example,
asin(10)
returnsNaN
but'inf'::DOUBLE / 'inf'::DOUBLE
returns-NaN
.3.0 * 0
returns0.0
but-3.0 * 0
returns-0.0
.So, users need to determine
NaN
and0.0
like as follows.To avoid such boilerplate code, I propose to add
isnan
andiszero
.Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: