datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Release DataFusion `55.3.0` (patch) Release (Nov 2026)

Open alamb opened this issue 1 month ago • 16 comments

Is your feature request related to a problem or challenge?

  • Part of https://github.com/apache/datafusion/issues/19783
  • Follow on to https://github.com/apache/datafusion/issues/25758

Discuss a 55.3.0 patch release to fix any bugs / issues found in 55.2.0.

Steps:

  • [ ] Update version and changelog
  • [ ] Test with DataFusion Python
  • [ ] Test with DataFusion Comet
  • [ ] Test with delta.rs:
  • [ ] Test vortex:
  • [ ] Test with iceberg-rust:
  • [ ] Test with LakeSail:
  • [ ] Test with parquet viewer
  • [ ] Test with datafusion-materialized-views
  • [ ] Voting Thread:
  • [ ] Publish to crates.io

Potential Content:

Already merged to branch-55 (unreleased):

Bug Fixes

  • [x] Issue https://github.com/apache/datafusion/issues/17340; Fix: https://github.com/apache/datafusion/pull/24592 (@jayzhan211); Backport: https://github.com/apache/datafusion/pull/26435 (@andygrove)
  • [x] Issue https://github.com/apache/datafusion/issues/23393; Fix: https://github.com/apache/datafusion/pull/26154 (@kosiew); Backport: https://github.com/apache/datafusion/pull/26767 (@andygrove)
  • [x] Issue https://github.com/apache/datafusion/issues/26779 (@ndscoder); Fix: https://github.com/apache/datafusion/pull/25234 (@haohuaijin); Backport: https://github.com/apache/datafusion/pull/26869 (@haohuaijin)
  • [x] Issue https://github.com/apache/datafusion/issues/26779 (@ndscoder); Fix: https://github.com/apache/datafusion/pull/25531 (@haohuaijin); Backport: https://github.com/apache/datafusion/pull/26870 (@haohuaijin)
  • [x] Issue https://github.com/apache/datafusion/issues/25471 (@lyne7-sc); Fix: https://github.com/apache/datafusion/pull/25472 (@lyne7-sc); Backport: https://github.com/apache/datafusion/pull/27320 (@Sunninsky)
  • [x] Issue https://github.com/apache/datafusion/issues/25133 (@jeffw13); Fix: https://github.com/apache/datafusion/pull/25134 (@jeffw13); Backport: https://github.com/apache/datafusion/pull/27353 (@Sunninsky)
  • [x] Issue https://github.com/apache/datafusion/issues/26001 (@jayzhan211); Fix: https://github.com/apache/datafusion/pull/26027 (@CuteChuanChuan); Backport: https://github.com/apache/datafusion/pull/27354 (@Sunninsky)
  • [ ] Fix: https://github.com/apache/datafusion/pull/24573 (@jayzhan211); Backport: https://github.com/apache/datafusion/pull/27358 (@Sunninsky, draft)
  • [x] Issue https://github.com/apache/datafusion/issues/25875 (@hareshkh); Fix: https://github.com/apache/datafusion/pull/25828 (@hareshkh); Backport: https://github.com/apache/datafusion/pull/27373 (@kamilk-pal)
  • [x] Issue https://github.com/apache/datafusion/issues/25157 (@gruuya); Fix: https://github.com/apache/datafusion/pull/25312 (@2010YOUY01); Backport: https://github.com/apache/datafusion/pull/25843 (@andygrove)

Other

  • [ ] TBD

Minor Features:

  • [ ] TBD

If you think another fix should be included, please comment here or open a backport PR against branch-55 and link it. See the Release Management guide for backport criteria.

alamb avatar Oct 28 '26 22:10 alamb

@alamb i open the two backport PRs to branch-55:

  • #26869 backports #25234: fix unsafe integer interval propagation.
  • #26870 backports #25531: restrict reverse cast constraint propagation to safe conversions.

haohuaijin avatar Oct 29 '26 03:10 haohuaijin

We hit a planning failure on 55.2.0 in production: a CAST(timestamp AS DATE) < date filter failed with Selectivity is out of limit: 1.0010667877660373. #26870 on branch-55 fixes it, and we confirmed that with a local repro. We'd like to see 55.3.0 released, and are happy to help test it against delta.rs.

clintonjrobinson avatar Nov 09 '26 14:11 clintonjrobinson

Thanks @clintonjrobinson please make a backport PR to the branch-55

alamb avatar Nov 09 '26 15:11 alamb

A candidate for 55.3.0: #25472 (fix for #25471, LEAD/LAG ... IGNORE NULLS returning NULL / the default across NULL gaps).

55.2.0 still has the bug that #25472 fixes on main. In WindowShiftEvaluator::evaluate (datafusion-functions-window/src/lead_lag.rs), the NULL branch of the LEAD lookahead refill can never run, so LEAD(v, N) IGNORE NULLS with N >= 2 returns the wrong row once a NULL falls inside the lookahead. The repro in #25471 shows it: LEAD(v, 2) IGNORE NULLS for id = 3 returns NULL instead of 70.

This is a wrong result, not a slowdown. We found it in DataFusion Comet, which runs Spark's lead / lag ... IGNORE NULLS through this evaluator: a differential run against Spark on real rows returns different rows for LEAD with an offset of 2 or more.

As far as I can see #25472 is only on main (labelled v56.0.0), not on branch-55, and it is not in the "Potential Content" list above. Could it be added?

A related but separate case in the same evaluator is #27284: with offset 0, IGNORE NULLS returns the default for a row that is itself NULL.

Sunninsky avatar Nov 10 '26 15:11 Sunninsky

Sure -- please make a backport PR and and we can review

alamb avatar Nov 11 '26 00:11 alamb

Backport PR for #25472: #27320. The cherry-pick (-x) applied to branch-55 without conflicts and changes nothing else. On the branch I ran cargo test -p datafusion-functions-window (18 passed) and the sqllogictests matching window (all 7 files pass, including window.slt and window_limits.slt with the cases #25472 added).

Sunninsky avatar Nov 11 '26 01:11 Sunninsky

Three more candidates for 55.3.0, all in the sort-merge join (datafusion/physical-plan/src/joins/sort_merge_join/). As far as I can see none of them is on branch-55 or in the list above: they are on main only (labelled v56.0.0), and the 55.1.0 and 55.2.0 changelogs have no sort-merge-join entry. Each one is a failed task or a wrong result, not a slowdown:

  • #25134 (fix for #25133): a mark, semi or anti sort-merge join on a floating-point key panics with called `Option::unwrap()` on a `None` value when a key group ends at the end of an input batch and the key is NaN. Through Comet this is a Spark LEFT SEMI JOIN / LEFT ANTI JOIN on a DOUBLE key with NaN rows, and Spark returns the rows. The cherry-pick (-x) onto branch-55 applies cleanly.
  • #26027 (fix for #26001): a LEFT / RIGHT / FULL sort-merge join whose filter uses a column that is NOT NULL on the NULL-padded side fails with Column '...' is declared as non-nullable but contains null values. Through Comet that column is the count(*) of an aggregate directly under the join. The cherry-pick conflicts in materializing_stream.rs (around filter_schema).
  • #24573: with a join filter, LEFT / RIGHT / FULL emit their last filtered batch ahead of rows still staged in the output buffer, while the join advertises the order of its streamed side (maintains_input_order). A native aggregate above it trusts that order, closes a group early and returns it twice: 8 rows where Spark returns 7. The cherry-pick conflicts in tests.rs only. (Only 5 of its 20 hunks are the ordering fix; we carry just those in Comet.)

We found them in DataFusion Comet, which vendors 55.2.0: Spark queries compared with Spark's own result, with the batch size set to 1 to 8 rows, because test data of ordinary size never makes a key group end at a batch boundary. On the 55.2.0 code the tests of #25134 (144 cases) and #24573 (3 ordering tests) fail, and with each fix they pass. The tests of #26027 are sqllogictests, so we wrote three small unit tests for it (LEFT, RIGHT and FULL, the filter column declared NOT NULL on the padded side), which fail with the error above on 55.2.0 and pass with the fix.

Could they be added? I can open the backport PRs against branch-55 if that helps.

Sunninsky avatar Nov 11 '26 08:11 Sunninsky

yes please open backport prs . Also if they aren't on branch-54 please backport them to there as well (to prevent regressions on upgrade to 54)

alamb avatar Nov 12 '26 03:11 alamb

Opened the backport PRs.

branch-55:

  • #27353: fix(smj): handle floating-point keys across batch boundaries (backport of #25134), clean cherry-pick
  • #27354: fix: allow NULL-padded rows in sort-merge join filter evaluation (backport of #26027), one conflict resolved
  • #27358: fix: ensure deferred-filtered outer joins preserve streamed output order (backport of #24573), conflict in tests.rs only (draft, see below)

branch-54 (none of the three is on branch-54 either, and the new tests fail there without the fix):

  • #27357 (#25134): clean cherry-pick (draft)
  • #27356 (#26027): the sort-merge join on branch-54 predates the generator refactor, so I ported it by hand (draft)
  • #27355 (#24573): partial port, only the ordering fix and its three regression tests; the rest of that commit refactors code that is different on branch-54 (draft)

Four of these are drafts because contributors without write access are limited to 3 open non-draft PRs, and #27320, #27353 and #27354 already use the three slots. Each PR says what was run and shows the new tests failing without the fix.

As the open ones get merged I will mark the drafts ready for review, in this order: #27358, #27357, #27356, #27355. If it is easier, a committer can also mark them ready or take them over.

Sunninsky avatar Nov 12 '26 04:11 Sunninsky

Could we get https://github.com/apache/datafusion/pull/27373 included in the release too?

kamilk-pal avatar Nov 12 '26 17:11 kamilk-pal

I'll get the backports merged, and then get a PR up with version change and release notes

alamb avatar Nov 12 '26 21:11 alamb

Version change PR:

  • https://github.com/apache/datafusion/pull/27382

alamb avatar Nov 12 '26 23:11 alamb

PR to update changelog / version:

  • https://github.com/apache/datafusion/pull/27388

alamb avatar Nov 12 '26 23:11 alamb

Hey @alamb, sorry for the last minute notice, could we get a backport of https://github.com/apache/datafusion/pull/26310 in too? It got backported to branch-54 so it'd be good to have it in this release too.

Backport PR: https://github.com/apache/datafusion/pull/27392

kamilk-pal avatar Nov 13 '26 00:11 kamilk-pal

Voting thread: https://lists.apache.org/thread.html/nk0vdvyo7qpn6f8lsyo3j13vqcgp5mcc

alamb avatar Nov 13 '26 19:11 alamb

PR is approved and released: https://lists.apache.org/thread.html/wbb8fnxsddqh36l2hr005f6cdyplp0yx

alamb avatar Nov 17 '26 20:11 alamb