HonahX commented on code in PR #139: URL: https://github.com/apache/iceberg-python/pull/139#discussion_r1401631738
########## pyiceberg/table/__init__.py: ########## @@ -350,6 +357,241 @@ class RemovePropertiesUpdate(TableUpdate): removals: List[str] +class TableMetadataUpdateContext: + updates: List[TableUpdate] + last_added_schema_id: Optional[int] Review Comment: There is one case that we need this: For `SetCurrentSchemaUpdate`, if the given `schema_id` is `-1`, we will set the current schema to last added schema by the stored `last_added_schema_id`. I think later when we add support to `SetDefaultSpecUpdate` and `SetDefaultSortOrderUpdate` we can add `last_added_spec_id` and `last_added_sort_order_id` here too. WDYT? -- 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