You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "viirya (via GitHub)" <gi...@apache.org> on 2023/03/03 08:02:45 UTC

[GitHub] [arrow-datafusion] viirya opened a new issue, #5464: `compute_decimal_op_dyn_scalar` should not cast lhs array to decimal array

viirya opened a new issue, #5464:
URL: https://github.com/apache/arrow-datafusion/issues/5464

   **Describe the bug**
   
   Comparing decimal dictionary array with scalar value causes an error like:
   
   ```
   thread 'expressions::binary::tests::comparison_dict_decimal_scalar_expr_test' panicked at 'called `Result::unwrap()` on an `Err` value: Internal("could not cast value to arrow_array::array::primitive_array::PrimitiveArray<arrow_array::types::Decimal128Type>")', datafusion/physical-expr/src/expressions/binary.rs:1085:17                                                                                                                                
   ```
   
   In `compute_decimal_op_dyn_scalar` macro, we shouldn't cast lhs array to decimal array as it invokes dyn kernel and lhs array could be dictionary array.
   
   **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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-datafusion] alamb closed issue #5464: `compute_decimal_op_dyn_scalar` should not cast lhs array to decimal array

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #5464: `compute_decimal_op_dyn_scalar` should not cast lhs array to decimal array
URL: https://github.com/apache/arrow-datafusion/issues/5464


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org