Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkharderdev committed Sep 12, 2022
1 parent 627f051 commit e3f1d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions datafusion/core/src/physical_plan/file_format/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1278,11 +1278,6 @@ mod tests {
.await
.unwrap();

// This does not look correct since the "c2" values in the result do not in fact match the predicate `c2 == 0`
// 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
// a null array, then the pruning predicate (currently) can not be applied.
// In a real query where this predicate was pushed down from a filter stage instead of created directly in the `ParquetExec`,
// the filter stage would be preserved as a separate execution plan stage so the actual query results would be as expected.
let expected = vec![
"+----+----+",
"| c1 | c2 |",
Expand Down
6 changes: 2 additions & 4 deletions datafusion/expr/src/expr_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,8 @@ pub fn combine_filters_disjunctive(filters: &[Expr]) -> Option<Expr> {
if filters.is_empty() {
return None;
}
let combined_filter = filters
.iter()
.reduce(|acc, filter| or(acc, filter.clone()));
Some(combined_filter)

filters.iter().cloned().reduce(or)
}

/// Recursively un-alias an expressions
Expand Down

0 comments on commit e3f1d33

Please sign in to comment.