Skip to content

feat: Upgrade to DataFusion 54 [do not merge]#4062

Draft
andygrove wants to merge 39 commits into
mainfrom
datafusion-54
Draft

feat: Upgrade to DataFusion 54 [do not merge]#4062
andygrove wants to merge 39 commits into
mainfrom
datafusion-54

Conversation

@andygrove
Copy link
Copy Markdown
Member

@andygrove andygrove commented Apr 24, 2026

Which issue does this PR close?

Closes #3978.

Rationale for this change

Keep the long-running datafusion-54 upgrade branch testable against the latest pre-release DataFusion. This PR is not intended to merge yet. It tracks main plus the DF 54 API adaptations so we can exercise Comet against pre-release branch-54 and feed bugs back upstream. It will become the merge that bumps Comet main to DataFusion 54 once crates are released.

What changes are included in this PR?

  • DataFusion deps pinned to rev = "50aa138" (latest commit on branch-54) in native/Cargo.toml and native/core/Cargo.toml; Cargo.lock regenerated.
  • DF 54 API adaptations (per the 54.0.0 upgrade guide):
    • Remove as_any() overrides (and strip .as_any() from call sites) since the method was dropped from PhysicalExpr, ScalarUDFImpl, ExecutionPlan, etc.
    • Remove apply_expressions overrides. The upstream addition was reverted on branch-54 (858ad6b6a).
    • schema_adapter.rs: derive the input field from the child Column + physical schema, since CastExpr::input_field() was removed in favor of target_field().
    • MemoryPool impls: add Display and name() to satisfy the new 'static + Any supertrait requirements.
  • Enable Sort Merge Join with filter by default (COMET_EXEC_SORT_MERGE_JOIN_WITH_JOIN_FILTER_ENABLED) and mark the config deprecated.
  • Add a SPARK-43113 reproducer in CometJoinSuite (full outer SMJ with NULL in join filter).

How are these changes tested?

Existing tests.

@comphead comphead mentioned this pull request Apr 27, 2026
4 tasks
@comphead comphead marked this pull request as ready for review May 29, 2026 17:01
@mbutrovich mbutrovich marked this pull request as draft May 29, 2026 17:13
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.

chore: DataFusion 54.0.0

3 participants