jiakai-li commented on issue #1253: URL: https://github.com/apache/iceberg-python/issues/1253#issuecomment-2583876079
Adding an example for the issue: ```python from pyiceberg.catalog.sql import SqlCatalog from pyiceberg.schema import Schema from pyiceberg.types import IntegerType, NestedField, StringType WAREHOUSE_PATH = "/workspaces/iceberg-python/warehouse" catalog = SqlCatalog( "default", uri=f"sqlite:///{WAREHOUSE_PATH}/pyiceberg_catalog.db", warehouse=f"file://{WAREHOUSE_PATH}", ) catalog.create_namespace_if_not_exists("default") try: catalog.drop_table("default.test") except: pass schema = Schema( NestedField(1, "field1", StringType(), required=False) ) table = catalog.create_table("default.test", schema) with table.update_schema() as update: update.add_column("field_should_not_exist", IntegerType()) raise Exception("Error!") ``` -- 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