Skip to content

Conversation

@matthewmturner
Copy link
Contributor

Which issue does this PR close?

Closes #9219

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label Feb 13, 2024
.unwrap();
c.bench_function(&format!("physical_plan_tpch_{}", q), |b| {
b.iter(|| logical_plan(&ctx, &sql))
b.iter(|| physical_plan(&ctx, &sql))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was disconnect between benchmark name (physical plan) and the function(logical plan), so I corrected this

@matthewmturner matthewmturner marked this pull request as ready for review February 13, 2024 20:41
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @matthewmturner and @Dandandan

all_files: impl Stream<Item = Result<(PartitionedFile, Statistics)>>,
file_schema: SchemaRef,
limit: Option<usize>,
collect_stats: bool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the function is called 'get_statisticsand now there is a boolean flag that implies the stats aren't collected, can we please add some documentation to the docstring explaining what thecollect_stats` flag does?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes good catch, will do.

@matthewmturner
Copy link
Contributor Author

@alamb I have updated the docstring. let me know if anything else

@alamb alamb merged commit 8aaea5d into apache:main Feb 15, 2024
@alamb
Copy link
Contributor

alamb commented Feb 15, 2024

Thanks again @matthewmturner !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve performance of list_files_for_scan when not collecting statistics

3 participants