Upgrade DataFusion to 56, or 55 if the ecosystem stops there

オープン
#511 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
mysql, postgresql, rust

調査の方向性

Start by checking the four ecosystem crates in the decision table for compatible releases, then read the DataFusion 55 and 56 upgrade guides. The issue names key Beacon files, including beacon-file-stats/src/pruning.rs, beacon-arrow-atlas/src/datafusion/pruning.rs, and beacon-datafusion-ext/src/scan_adapt.rs; use its checklist to locate the remaining implementations and tests. Done means choosing a supported version, upgrading Beacon and its dependencies, porting the external spatial fork, and checking the listed behavior changes.

索引モデルが issue の本文から書いたものです。

説明

beacon-kernel dependencies effort-L enhancement rust

Parent: #510

Upgrade the workspace from DataFusion 53 to the newest DataFusion major that the file-format ecosystem supports. The target is 56. Fall back to 55 if the ecosystem stops there. Do not stop at 54: that version has the same code work and the same Delta problem, and it is one year old by December.

Decision rule

Decide the version on 2026-11-01, or earlier when the signals arrive. Pick the highest DataFusion major with a crates.io release of all four:

Crate Why it decides State on 2026-09-21
lance Hands record batches to DataFusion. Two Arrow copies are not an option. 12.0.0 is DataFusion 54, Arrow 58, object_store 0.14. object_store 0.14 matches DataFusion 56, not 55. Lance probably skips 55.
deltalake Same. 0.32.4 is DataFusion 53. Main is DataFusion 55, Arrow 59, version 3.0.0 unreleased.
iceberg-datafusion Same. 0.11.0 (release candidate) is DataFusion 54. The crate moved to apache/datafusion-iceberg, which is on DataFusion 55 with no release.
datafusion-table-providers Federation of PostgreSQL, MySQL, ODBC. 0.13.1 is DataFusion 54, Arrow 58.

Ready already for Arrow 59: datafusion-federation 0.5.6 (DataFusion 55), geoarrow and geoparquet 0.9, axum-streams 0.29, arrow-odbc 25.3.

Own work outside this repository: the datafusion-spatial fork sits on Arrow 58 and GeoArrow 0.8. Port it to the Arrow major of the chosen DataFusion, and add the matching df55 or df56 feature.

If no version qualifies by 2026-11-15, ship 2.1.0 on DataFusion 53 and move this issue to the next release.

Work in Beacon

Known from the DataFusion 54 spike of 2026-09-21. The 54 changes apply to 55 and 56 too.

DataFusion 54:

  • Remove as_any from 105 trait implementations and drop .as_any() at about 55 downcast sites. Mechanical.
  • PruningStatistics::row_counts loses its column argument. Three Beacon implementations answer per column: beacon-file-stats/src/pruning.rs, beacon-arrow-atlas/src/datafusion/pruning.rs, beacon-arrow-bbf/src/datafusion/opener.rs. The BBF "absent column" trick needs a new design.
  • The FileStatisticsCache implementation in beacon-datafusion-ext/src/stats_cache.rs must adopt TableScopedPath and the cache limit methods.
  • CastColumnExpr is gone. Use the field-aware CastExpr in beacon-datafusion-ext/src/scan_adapt.rs.
  • Lance API jump from 7 to the chosen version, about 40 call sites in beacon-lance.

DataFusion 55, from the upstream upgrade guide:

  • TableProvider::scan takes Option<&[usize]> for the projection. 9 implementations.
  • ExecutionPlan::apply_expressions is required. 6 implementations.
  • with_new_children and partition_statistics are deprecated.
  • Catalog, planner and optimizer contracts move to datafusion-session. Physical planning state moves to PhysicalPlanningContext.
  • ListingOptions::target_partitions and collect_stat are removed.

DataFusion 56, from the upstream upgrade guide:

  • Arrow 60, Parquet 60, object_store 0.14.2. Every object store adapter in Beacon changes, and the redb object store with it.
  • Field and schema metadata use Arrow's Metadata type.
  • Physical filter pushdown resolves columns by position.

Behavior changes to test

  • String and number comparisons coerce to numbers (54). int_col = 'abc' errors instead of an empty result. Check ODV and CSV data with mixed types.
  • The scan stream no longer prefetches the next file (54). Run the atlas scan profile.
  • Filter predicate evaluation order can differ from the query text (55).
  • Missing Parquet null counts count as unknown (56).

Reference

The DataFusion 54 pairing that resolved on 2026-09-21, for a fallback: datafusion ^54, datafusion-federation =0.5.5, datafusion-table-providers =0.12.1, lance =11.0.0, iceberg 0.11.0, deltalake from delta-rs git rev a98860b476, datafusion-spatial with feature df54.

主要言語
Rust
スター
16
フォーク
4
平均マージ
19時間 58分
マージ済み PR(30日)
39

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

maris-development/beacon のほかの issue

maris-development/beacon の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。