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
We've integrated Datafusion but recently saw an exception during evaluating arithmetic operation between DictionaryArray and scalar value:
'Dictionary(Int32, Int64) + Int64' can't be evaluated because there isn't a common type to coerce the types to.
A few issues around this:
binary_operator_data_type calls coerce_types to coerce left and right data types, but it doesn't consider Dictionary type. in mathematics_numerical_coercion.
In BinaryExpr.evaluate_array_scalar, the macros for arithmetic operations (Plus etc.) also don't consider DictionaryArray.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
We've integrated Datafusion but recently saw an exception during evaluating arithmetic operation between DictionaryArray and scalar value:
A few issues around this:
binary_operator_data_type
callscoerce_types
to coerce left and right data types, but it doesn't considerDictionary
type. inmathematics_numerical_coercion
.BinaryExpr.evaluate_array_scalar
, the macros for arithmetic operations (Plus
etc.) also don't considerDictionaryArray
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: