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

Abierto
#511 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
mysql, postgresql, rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
16
Forks
4
Merge medio
19 h 58 min
PR fusionados (30 d)
39

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de maris-development/beacon

Todos los issues de maris-development/beacon

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.