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? Please describe what you are trying to do.
There is bug when binary mathematical operators +, -, *, /, % work with literal NULL
To reproduce
> select column1 + NULL from (VALUES (1, 2.3), (2, 5.4)) as t
Plan("'Int64 + Null' can't be evaluated because there isn't a common type to coerce the types to")
Postgres works like
# select column1 + NULL from (VALUES (1, 2.3), (2, 5.4)) as t;
?column?
----------
(2 rows)
Describe the solution you'd like
Adjusts mathematics_numerical_coercion in binary_rule.rs, make it work well on condition that at most one side of lhs or rhs is NULL
Enhances compute_op_scalar macro in binary.rs to produce NULL array when scalar value is NULL
Describe alternatives you've considered
No.
Additional context
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
There is bug when binary mathematical operators
+
,-
,*
,/
,%
work with literalNULL
To reproduce
Postgres works like
Describe the solution you'd like
mathematics_numerical_coercion
inbinary_rule.rs
, make it work well on condition that at most one side of lhs or rhs is NULLcompute_op_scalar
macro inbinary.rs
to produce NULL array when scalar value isNULL
Describe alternatives you've considered
No.
Additional context
The text was updated successfully, but these errors were encountered: