Repository navigation
chore: prepare for DataFusion 56 - #99
Conversation
|
@gabotechs @NoahKusaba @andygrove this is ready for review when you have a chance. It updates the integration to DataFusion 56 and Arrow 60. |
|
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.
6ee8051 to
a88f6cb
Compare
alexanderbianchi
left a comment
There was a problem hiding this comment.
+1 to leaving it open for now, but LGTM once it's time.
|
@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
left a comment
There was a problem hiding this comment.
makes sense to me too -- we are almost done with the 56 release
|
https://crates.io/crates/datafusion/56.0.0 is out, we are good point to crates.io here. |
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
left a comment
There was a problem hiding this comment.
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.
## 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]>
Updates the project to DataFusion 56 and Arrow 60. DataFusion is pinned to the current
branch-56commit, and the Iceberg dependency follows apache/iceberg-rust#3257 until compatible releases are available.The code changes adapt
TableProviderprojections to slices, update partition-spec construction for the current iceberg-rust API, and refresh the affected plan and result snapshots.