rok commented on code in PR #8305:
URL: https://github.com/apache/arrow-rs/pull/8305#discussion_r2583567457


##########
parquet/src/file/metadata/thrift/mod.rs:
##########
@@ -1459,12 +1476,11 @@ impl WriteThrift for ColumnChunkMetaData {
 
         #[cfg(feature = "encryption")]
         {
-            // only write the ColumnMetaData if we haven't already encrypted it
-            if self.encrypted_column_metadata.is_none() {
-                writer.write_field_begin(FieldType::Struct, 3, last_field_id)?;
-                serialize_column_meta_data(self, writer)?;
-                last_field_id = 3;
-            }
+            // Always write the ColumnMetaData struct

Review Comment:
   Indeed. Deduplicated.



-- 
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]

Reply via email to