kevinjqliu commented on issue #1493:
URL:
https://github.com/apache/iceberg-python/issues/1493#issuecomment-2575670705
Example test
```
def test_add_and_evolve_schema(simple_table: Table) -> None:
parent = "parent"
child = ("parent", "child")
schema = simple_table.schema()
# "parent" not in schema yet
assert any(parent != field.name for field in schema.fields)
with simple_table.update_schema() as schema_update:
schema_update.add_column(parent, StructType())
schema_update.add_column(child, StringType())
```
--
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]