Skip to content

Commit 06223ae

Browse files
PR comments
1 parent a9efaf8 commit 06223ae

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

datafusion/core/src/physical_plan/file_format/parquet.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,11 +1278,6 @@ mod tests {
12781278
.await
12791279
.unwrap();
12801280

1281-
// This does not look correct since the "c2" values in the result do not in fact match the predicate `c2 == 0`
1282-
// but parquet pruning is not exact. If the min/max values are not defined (which they are not in this case since the it is
1283-
// a null array, then the pruning predicate (currently) can not be applied.
1284-
// In a real query where this predicate was pushed down from a filter stage instead of created directly in the `ParquetExec`,
1285-
// the filter stage would be preserved as a separate execution plan stage so the actual query results would be as expected.
12861281
let expected = vec![
12871282
"+----+----+",
12881283
"| c1 | c2 |",

datafusion/expr/src/expr_fn.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,8 @@ pub fn combine_filters_disjunctive(filters: &[Expr]) -> Option<Expr> {
479479
if filters.is_empty() {
480480
return None;
481481
}
482-
let combined_filter = filters
483-
.iter()
484-
.reduce(|acc, filter| or(acc, filter.clone()));
485-
Some(combined_filter)
482+
483+
filters.iter().cloned().reduce(or)
486484
}
487485

488486
/// Recursively un-alias an expressions

0 commit comments

Comments
 (0)