Skip to content

Commit

Permalink
Fixup test
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Nov 5, 2022
1 parent e3264f5 commit e37e7b9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions datafusion/core/src/physical_plan/file_format/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ mod tests {
let file_groups = meta.into_iter().map(Into::into).collect();

// prepare the scan
let mut parquet_exec = ParquetExec::new(
let parquet_exec = ParquetExec::new(
FileScanConfig {
object_store_url: ObjectStoreUrl::local_filesystem(),
file_groups: vec![file_groups],
Expand All @@ -999,13 +999,9 @@ mod tests {
},
predicate,
None,
);

if pushdown_predicate {
parquet_exec = parquet_exec
.with_pushdown_filters(true)
.with_reorder_filters(true);
}
)
.with_pushdown_filters(pushdown_predicate)
.with_reorder_filters(pushdown_predicate);

let session_ctx = SessionContext::new();
let task_ctx = session_ctx.task_ctx();
Expand Down

0 comments on commit e37e7b9

Please sign in to comment.