kevinjqliu commented on code in PR #2845:
URL: https://github.com/apache/iceberg-python/pull/2845#discussion_r2646162357
##########
tests/io/test_pyarrow.py:
##########
@@ -2588,6 +2588,34 @@ def test_inspect_partition_for_nested_field(catalog:
InMemoryCatalog) -> None:
assert {part["part"] for part in partitions} == {"data-a", "data-b"}
+def test_inspect_partitions_respects_partition_evolution(catalog:
InMemoryCatalog) -> None:
+ schema = Schema(
+ NestedField(id=1, name="dt", field_type=DateType(), required=False),
+ NestedField(id=2, name="category", field_type=StringType(),
required=False),
+ )
+ spec = PartitionSpec(PartitionField(source_id=1, field_id=1000,
transform=IdentityTransform(), name="dt"))
+ catalog.create_namespace("default")
+ table = catalog.create_table("default.test_partition_evolution_inspect",
schema=schema, partition_spec=spec)
Review Comment:
```suggestion
table =
catalog.create_table("default.test_inspect_partitions_respects_partition_evolution",
schema=schema, partition_spec=spec)
```
in case theres conflict
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]