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

[GitHub] [arrow-datafusion] tustvold commented on issue #5396: `Compute error: Overflow happened` in `tpcds_logical_q58`

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

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