alamb commented on code in PR #8848:
URL: https://github.com/apache/arrow-datafusion/pull/8848#discussion_r1452273766


##########
datafusion/core/src/datasource/physical_plan/parquet/page_filter.rs:
##########
@@ -280,7 +280,7 @@ fn find_column_index(
         .columns()
         .iter()
         .enumerate()
-        .find(|(_idx, c)| c.column_descr().name() == column.name())
+        .find(|(_idx, c)| c.column_descr().name() == column.name() && 
c.column_descr().path().parts().len() == 0)

Review Comment:
   Perhaps you can use the `parquet_column` function
   
   
https://github.com/apache/arrow-datafusion/blob/06bbe1298fa8aa042b6a6462e55b2890969d884a/datafusion/core/src/datasource/physical_plan/parquet/statistics.rs#L133
   
   Which is how the row group metadata fetches the relevant metadata
   
https://github.com/apache/arrow-datafusion/blob/eb81ea299aa7e121bbe244e7e1ab56513d4ef800/datafusion/core/src/datasource/physical_plan/parquet/row_groups.rs#L252-L255



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