Fokko commented on code in PR #1644: URL: https://github.com/apache/iceberg-python/pull/1644#discussion_r2175445140
########## tests/io/test_pyarrow.py: ########## @@ -2398,6 +2398,17 @@ def test_identity_partition_on_multi_columns() -> None: ) == arrow_table.sort_by([("born_year", "ascending"), ("n_legs", "ascending"), ("animal", "ascending")]) +def test_initial_value() -> None: + # Have some fake data, otherwise it will generate a table without records + data = pa.record_batch([pa.nulls(10, pa.int32())], ["some_field"]) + result = _to_requested_schema( + Schema(NestedField(1, "so-true", BooleanType(), required=True, initial_default=True)), Schema(), data Review Comment: Good point, I've changed the test to use a long instead 👍 -- 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