liukun4515 commented on PR #3549:
URL: 
https://github.com/apache/arrow-datafusion/pull/3549#issuecomment-1253233336

   > # Which issue does this PR close?
   > It fixes part of #3479 Closes #.
   > 
   > # Rationale for this change
   > Prior to this fix:
   > 
   > ```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")
   > ```
   > 
   > After this fix:
   > 
   > ```sql
   > ❯ select null + 1::decimal;
   > +-----------------+
   > | NULL + Int64(1) |
   > +-----------------+
   > |                 |
   > +-----------------+
   > 1 row in set. Query took 0.020 seconds.
   > ```
   > 
   > # What changes are included in this PR?
   > # Are there any user-facing changes?
   
   why the result is `null+int64` not the decimal?


-- 
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