Fokko commented on issue #1917: URL: https://github.com/apache/iceberg-python/issues/1917#issuecomment-2809781599
Able to reproduce it: ```python @pytest.mark.integration def test_add_files_hour_transform(session_catalog: Catalog) -> None: identifier = f"default.test_add_files_hour_transform" schema = Schema( NestedField(1, "hourly", TimestampType()) ) schema_arrow = schema_to_pyarrow(schema, include_field_ids=False) spec = PartitionSpec( PartitionField(source_id=1, field_id=1000, transform=HourTransform(), name="spec_hour") ) tbl = _create_table(session_catalog, identifier, format_version=1, schema=schema, partition_spec=spec) file_path = f"s3://warehouse/default/test_add_files_hour_transform/test.parquet" arrow_table = pa.Table.from_pylist( [ { "hourly": micros_to_timestamp(1743465600155254) }, { "hourly": micros_to_timestamp(1743469198047855) } ], schema=schema_arrow, ) fo = tbl.io.new_output(file_path) with fo.create(overwrite=True) as fos: with pq.ParquetWriter(fos, schema=schema_arrow) as writer: writer.write_table(arrow_table) tbl.add_files(file_paths=[file_path]) ``` -- 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