Skip to content

chore: upgrade to DataFusion main + arrow/parquet 59.1.0 [WIP]#4888

Draft
andygrove wants to merge 2 commits into
apache:mainfrom
andygrove:wip/upgrade-datafusion-main
Draft

chore: upgrade to DataFusion main + arrow/parquet 59.1.0 [WIP]#4888
andygrove wants to merge 2 commits into
apache:mainfrom
andygrove:wip/upgrade-datafusion-main

Conversation

@andygrove

Copy link
Copy Markdown
Member

Summary

WIP draft to track the upgrade to DataFusion main (currently pinned to 63e25c15bc72e731c174ba03d1143b243cc1aaae, dated 2026-07-10). Bumps arrow/parquet from 58.3.0 to 59.1.0 to match what DataFusion main uses. object_store stays at 0.13.2 (DF main is still on that).

Not ready for merge — opened as a draft so CI runs against latest DF main and breaking changes are surfaced continuously.

Changes so far

  • native/Cargo.toml: swap datafusion, datafusion-datasource, datafusion-physical-expr-adapter, datafusion-spark from crates.io 54.0.0 to git = "https://github.com/apache/datafusion", rev = "..."
  • native/core/Cargo.toml: same treatment for the dev-dependency datafusion-functions-nested
  • Bump arrow and parquet workspace pins to 59.1.0

Known breakage (initial cargo check)

GroupsAccumulator::merge_batch signature changed upstream — dropped the opt_filter: Option<&BooleanArray> parameter (now 3 args instead of 4). 15 compile errors across:

  • spark-expr/src/agg_funcs/{avg,avg_decimal,correlation,covariance,percentile,stddev,sum_decimal,sum_int,variance}.rs

Also deprecation warnings on MutableArrayData::extend/extend_nulls (arrow 59 renamed to try_extend/try_extend_nulls returning errors instead of panicking) across several spark-expr/src/array_funcs/*.rs files.

Test plan

  • cd native && cargo check --workspace compiles clean
  • make test-rust passes
  • make test-jvm passes on default profile
  • Address any additional breakage revealed as compile errors are worked through

@comphead

Copy link
Copy Markdown
Contributor

related to #4865

Work through the compile breakage surfaced by pinning DataFusion to main:

- Drop opt_filter from GroupsAccumulator::merge_batch impls and their
  delegating call sites (avg, avg_decimal, correlation, covariance,
  percentile, stddev, sum_decimal, sum_int, variance, merge_as_partial)
  to match the upstream signature change.
- Migrate MutableArrayData::extend/extend_nulls to try_extend/
  try_extend_nulls across array_funcs and copy.rs (arrow 59 returns a
  Result instead of panicking).
- Rewire shuffle spill to the new DiskManager API, where create_tmp_file
  returns Arc<dyn SpillFile> and path() returns Option<&Path>.
- Replace deprecated TableSchema::from_file_schema/with_table_partition_cols
  with the TableSchema builder.
- Use FixedSizeBinaryArray::try_from (arrow 59 dropped the From impl).

The native iceberg scan remains broken: iceberg-rust still depends on
arrow 58, so its RecordBatch does not unify with Comet's arrow 59 type.
This is blocked on iceberg-rust upgrading to arrow 59.
@andygrove andygrove changed the title WIP: upgrade to DataFusion main + arrow/parquet 59.1.0 chore: upgrade to DataFusion main + arrow/parquet 59.1.0 [WIP] Jul 10, 2026
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