Skip to content

Upgrade to DF 52.4#31

Merged
zhuqi-lucas merged 1 commit intobranch-52from
upgrade-to-df-52.4
Mar 25, 2026
Merged

Upgrade to DF 52.4#31
zhuqi-lucas merged 1 commit intobranch-52from
upgrade-to-df-52.4

Conversation

@zhuqi-lucas
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 25, 2026 02:16
@zhuqi-lucas zhuqi-lucas requested a review from xudong963 March 25, 2026 02:19
Copy link

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 the project to a newer DataFusion (DF) revision and adjusts an optimizer-plan assertion to match DF 52.4’s changed logical plan output around COALESCE/casts/union coercion.

Changes:

  • Bump all datafusion* git dependencies in Cargo.toml to a new pinned revision.
  • Update a logical-plan expectation in src/materialized/dependencies.rs tests to reflect DF 52.4 optimizer output (CSE extraction and COALESCE expansion).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
Cargo.toml Updates pinned DataFusion git revisions across all datafusion-* crates.
src/materialized/dependencies.rs Updates expected EXPLAIN plan output for a test case and documents why DF 52.4 changes the plan.

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

Comment on lines +1849 to +1851
"| | Projection: CASE WHEN __common_expr_2 IS NOT NULL THEN __common_expr_2 ELSE t2.year END AS year |",
"| | Projection: CAST(t1.year AS Utf8View) AS __common_expr_2, t2.year |",
"| | Full Join: Using CAST(t1.year AS Utf8View) = t2.year |",
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

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

The updated expected plan asserts the internal CSE-generated alias __common_expr_2. That alias index is not a stable part of the API and can change with minor optimizer rule reordering, leading to brittle/failing tests without any functional regression. Consider normalizing the explain output before comparison (e.g., replace __common_expr_\d+ with a placeholder), or weakening this assertion to check for key operators/expressions without depending on the exact common-expr name/number.

Copilot uses AI. Check for mistakes.
@zhuqi-lucas zhuqi-lucas merged commit 84ea51d into branch-52 Mar 25, 2026
12 checks passed
@zhuqi-lucas zhuqi-lucas deleted the upgrade-to-df-52.4 branch March 25, 2026 02:28
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.

3 participants