kmitchener opened a new issue, #2761:
URL: https://github.com/apache/arrow-rs/issues/2761

   **Describe the bug**
   <!--
   A clear and concise description of what the bug is.
   -->
   
   Related to DataFusion issues:
   * https://github.com/apache/arrow-datafusion/issues/3479
   * https://github.com/apache/arrow-datafusion/issues/3487
   
   **To Reproduce**
   <!--
   Steps to reproduce the behavior:
   -->
   
   ```sql
   ❯ select null + 1::decimal;
   Plan("'Null + Decimal128(38, 10)' can't be evaluated because there isn't a 
common type to coerce the types to")
   ❯ select a < null from (values (1.1::decimal)) as t(a);
   ArrowError(ExternalError(Internal("Cannot convert Decimal128(None,38,10) to 
i128")))
   ```
   
   **Expected behavior**
   <!--
   A clear and concise description of what you expected to happen.
   -->
   
   Expect them to behave like other numerics, where mathematical and comparison 
operators function correctly when given nulls.
   ```sql
   ❯ select null + 1;
   +-----------------+
   | NULL + Int64(1) |
   +-----------------+
   |                 |
   +-----------------+
   1 row in set. Query took 0.002 seconds.
   ❯ select null < 1.1::decimal;
   +---------------------+
   | NULL < Float64(1.1) |
   +---------------------+
   |                     |
   +---------------------+
   1 row in set. Query took 0.002 seconds.
   ```
   **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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to