adriangb commented on code in PR #27736:
URL: https://github.com/apache/datafusion/pull/27736#discussion_r4735887420
##########
datafusion/datasource-parquet/src/opener/mod.rs:
##########
@@ -1524,21 +1536,32 @@ impl RowGroupsPrunedParquetOpen {
reader_metadata,
);
- let parquet_columns = predicate
- .literal_columns()
+ // Bloom filters of columns, and of struct fields from the leaf
+ // that their statistics key is bound to.
+ let parquet_schema = builder.parquet_schema();
+ let columns =
predicate.literal_columns().into_iter().filter_map(|name| {
+ let (leaf, _) = parquet_column(
+ parquet_schema,
+ &prepared.physical_file_schema,
+ &name,
+ )?;
+ Some((BloomFilterKey::Column(name), leaf))
+ });
+ let exprs =
predicate.literal_exprs().into_iter().filter_map(|expr| {
+ let leaf = struct_field_leaf(&expr)?.leaf;
Review Comment:
This seems to be adding more special casing of struct field access
--
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]