xanderbailey commented on code in PR #2453:
URL: https://github.com/apache/iceberg-rust/pull/2453#discussion_r3381046535
##########
crates/iceberg/src/table.rs:
##########
@@ -441,4 +495,133 @@ mod tests {
assert!(!table.readonly());
assert_eq!(table.identifier.name(), "table");
}
+
+ fn make_kms() -> Arc<dyn KeyManagementClient> {
+ let kms = MemoryKeyManagementClient::new();
+ kms.add_master_key("master-1").unwrap();
+ Arc::new(kms)
+ }
+
+ async fn write_empty_manifest_list_bytes(io: &FileIO, path: &str) ->
bytes::Bytes {
+ let output = io.new_output(path).unwrap().writer().await.unwrap();
+ let mut writer = ManifestListWriter::v3(output, 1, None, 0, Some(0));
+ writer.add_manifests(std::iter::empty()).unwrap();
+ writer.close().await.unwrap();
+ io.new_input(path).unwrap().read().await.unwrap()
+ }
+
+ #[tokio::test]
+ async fn table_decrypts_manifest_list_via_object_cache() {
Review Comment:
Not sure I 100% follow sorry, does something like
[3ccc455](https://github.com/apache/iceberg-rust/pull/2453/commits/3ccc45552283372136948dc0421cee4789de0a24)
work?
--
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]