Skip to content

chore: prepare for DataFusion 56 - #99

Merged
gabotechs merged 5 commits into
apache:mainfrom
Rich-T-kid:rich/datafusion-56
Nov 24, 2026
Merged

gabotechs merged 5 commits into
apache:mainfrom
Rich-T-kid:rich/datafusion-56

Conversation

@Rich-T-kid

@Rich-T-kid Rich-T-kid commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Updates the project to DataFusion 56 and Arrow 60. DataFusion is pinned to the current branch-56 commit, and the Iceberg dependency follows apache/iceberg-rust#3257 until compatible releases are available.

The code changes adapt TableProvider projections to slices, update partition-spec construction for the current iceberg-rust API, and refresh the affected plan and result snapshots.

@Rich-T-kid
Rich-T-kid marked this pull request as ready for review November 5, 2026 03:15
@Rich-T-kid
Rich-T-kid marked this pull request as draft November 5, 2026 13:39
@Rich-T-kid Rich-T-kid changed the title chore: prepare for DataFusion 56 WIP chore: prepare for DataFusion 56 Nov 5, 2026
@Rich-T-kid Rich-T-kid changed the title WIP chore: prepare for DataFusion 56 chore: prepare for DataFusion 56 Nov 5, 2026
@Rich-T-kid
Rich-T-kid marked this pull request as ready for review November 5, 2026 23:49
@Rich-T-kid

Copy link
Copy Markdown
Contributor Author

@gabotechs @NoahKusaba @andygrove this is ready for review when you have a chance. It updates the integration to DataFusion 56 and Arrow 60.

@andygrove

Copy link
Copy Markdown
Member

Thanks @Rich-T-kid. Should we leave this open until the release is available?

@Rich-T-kid

Copy link
Copy Markdown
Contributor Author

Thanks @Rich-T-kid. Should we leave this open until the release is available?

yeah, sounds good to me

Update the DataFusion and Arrow dependency graph together, adapt the projection APIs, and carry the current iceberg-rust partition builder API. Refresh plan and result expectations for DataFusion 56.
Update to the current apache/iceberg-rust#3257 head after its rebase and adapt to the latest partition spec API.

@alexanderbianchi alexanderbianchi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 to leaving it open for now, but LGTM once it's time.

@alexanderbianchi

Copy link
Copy Markdown
Contributor

@CCTY regarding #108 we are going to be blocked on updating the iceberg-rust dep to include apache/iceberg-rust#3704 on bumping this crates arrow library to version 60 which to my understanding is blocked on datafusion 56 which is going to take a few weeks. I am wondering if merging this PR is reasonable in the interim, build off the latest datafusion + iceberg_rust for now while we wait on the official datafusion 56.

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

makes sense to me too -- we are almost done with the 56 release

@gabotechs

Copy link
Copy Markdown
Contributor

Resolve conflicts with the FileScanTaskProvider refactor and the test
split, and depend on the DataFusion 56.0.0 release from crates.io
instead of a git revision.
Parquet 60.2 rejects record batches whose column count differs from the
writer schema. The partition splitter keeps the `_partition` column in
the batches it returns, so every insert into a partitioned table failed.
Pick up the FileScanTaskProviderBuilder projection removal and move
iceberg-rust to 6c973919, the upstream Arrow 60 merge commit that
directly follows main's b879b962.

@gabotechs gabotechs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @Rich-T-kid! I pushed some commits solving conflicts with main and updating to datafusion=56 from crates.io. This is good to go now.

@gabotechs
gabotechs merged commit 344c0d7 into apache:main Nov 24, 2026
5 checks passed
gabotechs added a commit to datafusion-contrib/datafusion-distributed that referenced this pull request Nov 24, 2026
## Why

Prepare DataFusion Distributed for DataFusion 56 and its Arrow 60 /
Parquet 60 dependency set. DataFusion is pinned to the exact current
`branch-56` commit
[`1635ed9`](apache/datafusion@1635ed9).

### note
The Iceberg dependencies now use Apache-hosted upstream PR commits.

-
[`apache/iceberg-rust#3257`](apache/iceberg-rust#3257)
at
[`0d5eb12`](apache/iceberg-rust@0d5eb12)
supplies the Arrow 60 dependency graph.
-
[`apache/datafusion-iceberg#99`](apache/datafusion-iceberg#99)
at
[`5398be1`](apache/datafusion-iceberg@5398be1)
supplies the DataFusion 56 API adaptations.

Follow-up issue
[#857](#857)
tracks replacing these temporary git pins with crates.io releases once
the coordinated DataFusion 56 and Arrow 60-compatible Iceberg releases
are published.


## What changed

- Upgrade DataFusion and `datafusion-cli` to the exact DataFusion 56
revision, Arrow and Parquet to 60, `object_store` to 0.14, and the
TPC-H/TPC-DS generators to their Arrow 60-compatible revision.
- Align the benchmark worker's direct `object_store` dependency with
DataFusion so the AWS feature is enabled on the same 0.14 package.
- Adapt projection, batch generation, physical-expression serialization,
byte metrics, and current Iceberg scan-task / partition-builder APIs.
- Refresh plan snapshots for DataFusion 56 optimizer and display
changes, including projection pushdown, join selection, ordering-aware
scans, aggregate grouping metadata, and limit placement.
- Document the direct dependency and custom `TableProvider` migration in
the 6.0 upgrade guide.

### Commit structure

1.
[`f9e2855`](f9e2855)
updates Cargo manifests and the lockfile, including the Apache-hosted
Iceberg revisions.
2.
[`01aac37`](01aac37)
aligns the benchmark worker's `object_store` version so its AWS client
builds with DataFusion 56.
3.
[`86975d1`](86975d1)
contains the compile and breaking API adaptations.
4.
[`defe313`](defe313)
documents downstream upgrade requirements.
5.
[`27074dd`](27074dd)
contains the Iceberg and distributed integration expectations.
6.
[`23bfd3e`](23bfd3e)
contains planner, TPC-H, sorted TPC-H, and TPC-DS plan snapshots.
7.
[`25a924b`](25a924b)
moves the DataFusion 56 migration notes to the 6.0 upgrade guide.

The dependency, benchmark-worker, and API commits intentionally keep the
dependency graph, benchmark infrastructure fix, and breaking API
adaptations independently reviewable.

---------

Signed-off-by: Richard Baah <[email protected]>
Co-authored-by: Gabriel <[email protected]>
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.

5 participants