xanderbailey commented on code in PR #3930:
URL: https://github.com/apache/iceberg-python/pull/3930#discussion_r3992214710
##########
pyiceberg/table/metadata.py:
##########
@@ -125,6 +126,33 @@ def construct_refs(table_metadata: TableMetadata) ->
TableMetadata:
return table_metadata
+class EncryptedKey(IcebergBaseModel):
+ """A key used for table encryption, tracked in v3 metadata under
`encryption-keys`.
+
+ https://iceberg.apache.org/spec/#encryption-keys
+ """
+
+ key_id: str = Field(alias="key-id")
+ """ID of the encryption key."""
+
+ encrypted_key_metadata: bytes = Field(alias="encrypted-key-metadata")
Review Comment:
Following iceberg-rust
https://github.com/apache/iceberg-rust/blob/b6dc4cfb8bd68c777a14e73afcbd4cf8a1a093e1/crates/iceberg/src/spec/encrypted_key.rs#L30-L32
and java here
https://github.com/apache/iceberg/blob/53d0e73f9d03e03805744bb9a13531ea12577efb/api/src/main/java/org/apache/iceberg/encryption/EncryptedKey.java#L28
--
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]