Skip to content

Conversation

@Omega359
Copy link
Contributor

@Omega359 Omega359 commented Oct 30, 2025

Which issue does this PR close?

Rationale for this change

Speed up the running of sql planner benchmarks

What changes are included in this PR?

Extracted out the 'logical_plan_optimize' benchmark to its own file.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the core Core DataFusion crate label Oct 30, 2025
@Omega359 Omega359 marked this pull request as ready for review October 30, 2025 17:54
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.

Thanks @Omega359 -- this is clearly an improvement over main

THere are some others like

Benchmarking physical_sorted_union_order_by_200: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 557.0s, or reduce sample count to 10.
Benchmarking physical_sorted_union_order_by_200: Collecting 100 samples in estimated 556.98 s (100 iterations)

That still take time but that is only 10 minutes (not hours!)

use std::sync::Arc;
use tokio::runtime::Runtime;

/// Registers a table like this:
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we could add some context to this benchmark that explains the reproducer is very slow and designed to cover certain planning cases, referencing

#17261

@alamb alamb added this pull request to the merge queue Oct 31, 2025
Merged via the queue into apache:main with commit a216aa5 Oct 31, 2025
31 checks passed
tobixdev pushed a commit to tobixdev/datafusion that referenced this pull request Nov 2, 2025
…he#18388)

## Which issue does this PR close?

- Closes apache#18366

## Rationale for this change

Speed up the running of sql planner benchmarks

## What changes are included in this PR?

Extracted out the 'logical_plan_optimize' benchmark to its own file.

## Are these changes tested?

Yes.

## Are there any user-facing changes?

No.
@Omega359 Omega359 deleted the feature/sql_planner_extended branch November 4, 2025 14:19
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.

Running the sql_planner benchmark takes too long (many hours)

2 participants