Skip to content

Commit a340796

Browse files
committed
wrap
1 parent d62c5a8 commit a340796

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

datafusion/datasource-parquet/src/opener.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,14 @@ impl FileOpener for ParquetOpener {
136136
let enable_page_index = self.enable_page_index;
137137

138138
Ok(Box::pin(async move {
139-
// Prune this file using the file level statistics.
139+
// Prune this file using the file level statistics and partition values.
140140
// Since dynamic filters may have been updated since planning it is possible that we are able
141141
// to prune files now that we couldn't prune at planning time.
142-
// It is assumed that there is no point in doing pruning here if the predicate is not dynamic, as it would have been done at planning time.
143-
// We'll also check this after every record batch we read, and if at some point we are able to prove we can prune the file using just the file level statistics we can return an empty stream.
142+
// It is assumed that there is no point in doing pruning here if the predicate is not dynamic,
143+
// as it would have been done at planning time.
144+
// We'll also check this after every record batch we read,
145+
// and if at some point we are able to prove we can prune the file using just the file level statistics
146+
// we can end the stream early.
144147
let file_pruner = predicate
145148
.as_ref()
146149
.map(|p| {

0 commit comments

Comments
 (0)