kevinjqliu commented on code in PR #4148:
URL: https://github.com/apache/iceberg-python/pull/4148#discussion_r4367910172
##########
pyiceberg/table/update/__init__.py:
##########
@@ -680,6 +698,31 @@ def _(
return base_metadata.model_copy(update={"partition_statistics":
statistics})
+@_apply_table_update.register(AddEncryptionKeyUpdate)
+def _(update: AddEncryptionKeyUpdate, base_metadata: TableMetadata, context:
_TableMetadataUpdateContext) -> TableMetadata:
+ if not isinstance(base_metadata, TableMetadataV3):
+ raise ValueError(f"Encryption keys are not supported in format version
{base_metadata.format_version}")
Review Comment:
👍
--
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]