jorisvandenbossche commented on issue #43908:
URL: https://github.com/apache/arrow/issues/43908#issuecomment-2326455436

   @matteosdocsity trying to reproduce creating the Parquet files locally (to 
see if there would be any noticeable difference between a file written by 
pyarrow 12 vs 13), but I get an error running your code to create the pyarrow 
table: `ArrowInvalid: Rescaling Decimal128 value would cause data loss`
   
   To demonstrate with just the first Decimal value:
   
   ```python
   >>> pa.array([Decimal('12345678901234567890.12345678901234567890')], 
type=pa.decimal128(38, 18))
   ...
   ArrowInvalid: Rescaling Decimal128 value would cause data loss
   ```
   
   If I don't specify a specific decimal type but let it be inferred, I get the 
following type:
   
   ```python
   >>> pa.array([Decimal('12345678901234567890.12345678901234567890')]).type
   Decimal256Type(decimal256(40, 20))
   ```
   
   


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