Skip to content

Commit

Permalink
fix fmt2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted-Jiang committed May 11, 2023
1 parent cda3f19 commit 68526ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datafusion/core/src/physical_plan/file_format/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,10 @@ fn should_enable_page_index(
) -> bool {
enable_page_index
&& page_pruning_predicate.is_some()
&& page_pruning_predicate.as_ref().unwrap().filter_number() > 0
&& page_pruning_predicate
.as_ref()
.map(|p| p.filter_number() > 0)
.unwrap_or(false)
}

/// Factory of parquet file readers.
Expand Down

0 comments on commit 68526ab

Please sign in to comment.