You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "drauschenbach (via GitHub)" <gi...@apache.org> on 2024/11/01 23:21:35 UTC

Re: [I] Incorrect error message for decimal with scale while input value is out of bound [datafusion]

drauschenbach commented on issue #3666:
URL: https://github.com/apache/datafusion/issues/3666#issuecomment-2452711160

   Fast-forward a few years, and this behavior is back.
   
   ```sql
   select 1::decimal(1, 1);
   Arrow error: Invalid argument error: 10 is too large to store in a Decimal128 of precision 1. Max is 9
   
   select 10::decimal(2, 1);
   Arrow error: Invalid argument error: 100 is too large to store in a Decimal128 of precision 2. Max is 99
   ```


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org