smaheshwar-pltr commented on code in PR #4522:
URL: https://github.com/apache/iceberg-python/pull/4522#discussion_r4733671876
##########
pyiceberg/table/update/__init__.py:
##########
@@ -373,12 +373,13 @@ def _(update: SetPropertiesUpdate, base_metadata:
TableMetadata, context: _Table
@_apply_table_update.register(RemovePropertiesUpdate)
def _(update: RemovePropertiesUpdate, base_metadata: TableMetadata, context:
_TableMetadataUpdateContext) -> TableMetadata:
- if len(update.removals) == 0:
- return base_metadata
-
properties = dict(base_metadata.properties)
for key in update.removals:
- properties.pop(key)
+ # Ignore keys that aren't set, since a concurrent commit may have
removed them
Review Comment:
I'm curious for thoughts here, I noticed this as being unusual compared to
the other implementations, and I don't see a concrete problem with removing this
--
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]