tustvold commented on issue #5396:
URL: 
https://github.com/apache/arrow-datafusion/issues/5396#issuecomment-1456565401

   > failed in expression "CAST(Int64(100) AS Decimal128(38, 38))"
   
   This sounds like a type inference bug, as opposed to something related to 
the handling of decimal arithmetic. In particular where has this scale of 38 
come from? Such a datatype cannot represent anything greater 1 and so the query 
is perfectly correct to bail out with an error.
   
   The original schema has a precision of 2, as it represents a monetary 
quantity, and so ending up with a scale of 38 is extremely suspect...
   
   


-- 
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-unsubscr...@arrow.apache.org

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

Reply via email to