manoj-inukolunu commented on code in PR #8848:
URL: https://github.com/apache/arrow-datafusion/pull/8848#discussion_r1463847493


##########
datafusion/core/src/datasource/physical_plan/parquet/page_filter.rs:
##########
@@ -164,17 +169,23 @@ impl PagePruningPredicate {
         let mut row_selections = 
Vec::with_capacity(page_index_predicates.len());
         for predicate in page_index_predicates {
             // find column index by looking in the row group metadata.
-            let col_idx = find_column_index(predicate, &groups[0]);
 
+            let name = find_column_name(predicate);
+            let mut parquet_col = None;
+            if name.is_some() {
+                parquet_col =
+                    parquet_column(parquet_schema, arrow_schema, 
name.unwrap().as_str());
+            }

Review Comment:
   aah thank you , i was searching for something like this. I will add this to 
my toolbox.



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