xanderbailey commented on code in PR #2584:
URL: https://github.com/apache/iceberg-rust/pull/2584#discussion_r3415934611


##########
crates/iceberg/src/scan/task.rs:
##########
@@ -118,6 +118,13 @@ pub struct FileScanTask {
 
     /// Whether this scan task should treat column names as case-sensitive 
when binding predicates.
     pub case_sensitive: bool,
+
+    /// Key metadata for encrypted data files (Parquet Modular Encryption).
+    /// When present, the reader uses this to build `FileDecryptionProperties`.
+    #[serde(default)]
+    #[serde(skip_serializing_if = "Option::is_none")]
+    #[builder(default)]
+    pub key_metadata: Option<Box<[u8]>>,

Review Comment:
   
[Spark](https://github.com/apache/iceberg/blob/main/spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/source/SparkInputPartition.java#L34-L36)
   
   Has `BaseFileScanTask` 
[link](https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/BaseFileScanTask.java#L28)
 which has 
[this](https://github.com/apache/iceberg/blob/main/core/src/main/java/org/apache/iceberg/BaseContentScanTask.java#L31)
 which contains raw dek metadata. It's a very good flag though so I'll add a 
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]

Reply via email to