Fokko commented on issue #1979:
URL: 
https://github.com/apache/iceberg-python/issues/1979#issuecomment-2862211260

   @alsugiliazova Thanks for raising this, I'm able to replicate this locally:
   
   ```python
   
   @pytest.mark.integration
   def test_read_write_decimals( session_catalog: Catalog):
       identifier = "default.test_read_write_decimals"
   
       decimal8 = pa.array([Decimal("123.45"), Decimal("678.91")], 
pa.decimal128(8, 2))
       decimal16 = pa.array([Decimal("12345679.123456"), 
Decimal("67891234.678912")], pa.decimal128(16, 6))
       decimal19 = pa.array([Decimal("1234567890123.123456"), 
Decimal("9876543210703.654321")], pa.decimal128(19, 6))
   
       table = pa.Table.from_pydict(
           {
               "decimal8": decimal8,
               "decimal16": decimal16,
               "decimal19": decimal19,
           },
       )
   
       tbl = _create_table(session_catalog, identifier, 
properties={"format-version": 2}, schema=Schema(
           NestedField(1, "decimal8", DecimalType(8, 2)),
           NestedField(2, "decimal16", DecimalType(16, 6)),
           NestedField(3, "decimal19", DecimalType(19, 6))
       ))
   
       tbl.append(table)
   ```
   
   We should have tested this more thoroughly. Sorry for the inconvenience.
   


-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to