Skip to content

Update DataFusion rev to 05a6c45 (skip non-join plan rebuild)#44

Merged
zhuqi-lucas merged 1 commit into
branch-52from
bump-df-rev-skip-adjust-input-keys
May 8, 2026
Merged

Update DataFusion rev to 05a6c45 (skip non-join plan rebuild)#44
zhuqi-lucas merged 1 commit into
branch-52from
bump-df-rev-skip-adjust-input-keys

Conversation

@zhuqi-lucas
Copy link
Copy Markdown
Collaborator

Summary

Bumps the DataFusion rev from `7768d24` to `05a6c45`, picking up upstream DF #21947 (`massive-com/arrow-datafusion@05a6c45`):

Skip unnecessary plan rebuild in adjust_input_keys_ordering for non-join plans

`EnforceDistribution::adjust_input_keys_ordering` no longer returns `Transformed::yes` for non-join/non-aggregate plans with no key requirements, eliminating an unnecessary tree rebuild per pass.

Why

For atlas, this directly cuts physical-optimizer time on plans containing OneOf candidates. `OneOfExec.children()` already exposes only the best candidate to the tree walker, but every `adjust_input_keys_ordering` call previously rebuilt the entire plan tree regardless. With this fix, non-join plans short-circuit early.

Test plan

  • `cargo check` clean
  • `cargo test` passes (25 unit + 1 integration test)
  • Wire into atlas; rerun staging tickers SLT

Picks up upstream DF #21947 (massive-com/arrow-datafusion@05a6c45):
EnforceDistribution::adjust_input_keys_ordering no longer returns
Transformed::yes for non-join/non-aggregate plans with no key
requirements, eliminating an unnecessary tree rebuild per pass.

For atlas, this directly cuts physical-optimizer time on plans
containing OneOf candidates: the OneOfExec children() trick already
exposes only the best candidate, but every adjust_input_keys_ordering
call still rebuilt the entire plan tree. With this fix, non-join
plans short-circuit early.
Copilot AI review requested due to automatic review settings May 8, 2026 07:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates this crate’s pinned DataFusion git dependencies to pick up an upstream optimizer improvement that avoids unnecessary plan-tree rebuilds during EnforceDistribution::adjust_input_keys_ordering for non-join/non-aggregate plans with no key requirements, reducing physical-optimizer overhead on affected plans.

Changes:

  • Bump all datafusion* git dependencies from rev 7768d24 to 05a6c45.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@zhuqi-lucas zhuqi-lucas merged commit 906d9cf into branch-52 May 8, 2026
12 checks passed
@zhuqi-lucas zhuqi-lucas deleted the bump-df-rev-skip-adjust-input-keys branch May 8, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants