Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SortExec bench case and Add SortExec input cases to bench for SortPreservingMergeExec #5308

Merged
merged 4 commits into from
Feb 20, 2023

Conversation

jaylmiller
Copy link
Contributor

@jaylmiller jaylmiller commented Feb 16, 2023

Which issue does this PR close?

#5230 (does not close it.)

Rationale for this change

The current SortPreservingMergeExec benchmarks take MemoryExec as input. In #5230 we want to modify SortPreservingMergeExec and SortExec so that when row encoding is used within the sort node, it is preserved for usage by the merge node.

Which means, we need bench cases on main for SortPreservingMergeExec when it has SortExec as input to see if the changes for #5230 are helping perf.

Additionally, the logic in the SortExec bench for the case where preserve_partitioning=false was flawed, so that has been fixed too.

What changes are included in this PR?

  • Added cases with SortExec as input to the merge bench.
  • Fixed minor error I made in the sort bench.

Are these changes tested?

n/a

Are there any user-facing changes?

no

@github-actions github-actions bot added the core Core DataFusion crate label Feb 16, 2023
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 @jaylmiller

datafusion/core/benches/merge.rs Show resolved Hide resolved
@jaylmiller jaylmiller changed the title Add SortExec input cases to bench for SortPreservingMergeExec Fix SortExec bench case and Add SortExec input cases to bench for SortPreservingMergeExec Feb 18, 2023
Comment on lines -202 to +204
let plan = Arc::new(SortExec::try_new(sort, Arc::new(exec), None).unwrap());
let exec = Arc::new(CoalescePartitionsExec::new(Arc::new(exec)));
let plan = Arc::new(SortExec::try_new(sort, exec, None).unwrap());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

without this change it was only ever benchmarking the case where the execute receives a single record batch to sort.

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.

LGTM -- thank you @jaylmiller

@alamb alamb merged commit e13c653 into apache:main Feb 20, 2023
@ursabot
Copy link

ursabot commented Feb 20, 2023

Benchmark runs are scheduled for baseline = 222205d and contender = e13c653. e13c653 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ec2-t3-xlarge-us-east-2] ec2-t3-xlarge-us-east-2
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on test-mac-arm] test-mac-arm
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-i9-9960x] ursa-i9-9960x
[Skipped ⚠️ Benchmarking of arrow-datafusion-commits is not supported on ursa-thinkcentre-m75q] ursa-thinkcentre-m75q
Buildkite builds:
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

jiangzhx pushed a commit to jiangzhx/arrow-datafusion that referenced this pull request Feb 24, 2023
…tPreservingMergeExec (apache#5308)

* add SortExec input case to each merge bench case

* fix lil typo error in sort bench

* fix sort bench to actually use full data set in non-preserve partition case
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.

4 participants