etseidl commented on code in PR #10842:
URL: https://github.com/apache/arrow-rs/pull/10842#discussion_r3918373715


##########
parquet/src/file/metadata/writer.rs:
##########
@@ -453,17 +452,18 @@ impl<'a, W: Write> ParquetMetaDataWriter<'a, W> {
             self.write_path_in_schema,
         );
 
-        if let Some(PageIndex {
-            column_indexes,
-            offset_indexes,
-        }) = page_index
+        // Downcast to PageIndex to access raw index structures for 
serialization
+        if let Some(page_index_arc) = self.metadata.page_index.as_ref()
+            && let Some(page_index) = page_index_arc
+                .as_any()
+                .downcast_ref::<crate::file::metadata::PageIndex>()

Review Comment:
   done in 
https://github.com/apache/arrow-rs/pull/10842/commits/690907cebec9e307a567f7755719371d32d4609a
   
   need to file issue



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