Skip to content

Commit

Permalink
release the arc stats before executing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Aug 8, 2024
1 parent 33a7a90 commit fcbfa92
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion datafusion/core/src/datasource/physical_plan/parquet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ impl ParquetExecBuilder {
schema_adapter_factory,
} = self;

let base_config = file_scan_config;
let mut base_config = file_scan_config;
debug!("Creating ParquetExec, files: {:?}, projection {:?}, predicate: {:?}, limit: {:?}",
base_config.file_groups, base_config.projection, predicate, base_config.limit);

Expand Down Expand Up @@ -391,6 +391,12 @@ impl ParquetExecBuilder {
&projected_output_ordering,
&base_config,
);

base_config
.file_groups
.iter_mut()
.for_each(|g| g.iter_mut().for_each(|f| f.statistics = None));

ParquetExec {
base_config,
projected_statistics,
Expand Down

0 comments on commit fcbfa92

Please sign in to comment.