Skip to content

chore: Bump latest tested polars version to 2.2 - #430

Merged
Andreas Albert (AndreasAlbertQC) merged 2 commits into
mainfrom
chore/bump-polars-latest-2
Dec 1, 2026
Merged

Andreas Albert (AndreasAlbertQC) merged 2 commits into
mainfrom
chore/bump-polars-latest-2

Conversation

@AndreasAlbertQC

@AndreasAlbertQC Andreas Albert (AndreasAlbertQC) commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

polars 1.43 has a race condition when evaluating nested arr.eval expressions on multiple threads, which intermittently panics with

ComputeError: values (of len 13) must be a multiple of size (2) in FixedSizeListArray.

This already affects nested dy.Array(dy.Array(...)) columns with inner rules on main (once a frame has more than ~24 rows), and it makes test_multidimensional_array_sample_is_valid from #427 fail in roughly a quarter of the runs.

Minimal reproduction in plain polars:

import polars as pl

df = pl.DataFrame(
    {"a": [[["x", "x"], ["x", "x"]]] * 100},
    schema={"a": pl.Array(pl.String, (2, 2))},
)
df.select(
    pl.col("a")
    .arr.eval(pl.element().arr.eval(pl.element().str.len_chars() >= 1).arr.all())
    .arr.all()
)

Running this 50 times panics in about half of the runs on polars 1.43.0 and 1.43.2, and never on 1.35.2 (our minimal version), 1.44.0, 1.44.2, 2.1.0, or 2.2.0. With POLARS_MAX_THREADS=1, it never panics on 1.43.2 either.

Changes

  • Bump feature.polars-latest from 1.43.* to 2.2.* and update the lockfile. Only polars and polars-runtime-32 change.
  • The minimal supported version (1.35.*) and the package's lower bound are unchanged. Users on affected versions can fix the panic by upgrading polars.

polars 1.43 intermittently panics when evaluating nested `arr.eval` expressions on multiple threads, which makes tests on (nested) multi-dimensional arrays flaky. The issue is fixed in polars 1.44 and later.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the chore label Nov 25, 2026
@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c095f4c) to head (cd31a33).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #430   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           46        46           
  Lines         2601      2601           
=========================================
  Hits          2601      2601           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Polars test-environment update.

No open issues 🎉

What changed in this PR

Refreshes Dataframely’s latest Polars test environments, prompted by the Polars 1.43 panic encountered during #427. The minimum supported version (1.35.*) and package lower bound remain unchanged.

Changes:

  • Raises feature.polars-latest from 1.43.* to 2.1.*.
  • Updates locked polars and polars-runtime-32 packages to 2.1.0 across affected environments and platforms.
File Description
pixi.toml Updates the latest-tested Polars version constraint.
pixi.lock Refreshes Polars package references, removes obsolete records, and normalizes Unix virtual-package entries.

Review effort: Balanced

@borchero

Copy link
Copy Markdown
Member

Polars 2.2 is also on cf now, let's bump this one further while we're at it

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 08:49
@AndreasAlbertQC Andreas Albert (AndreasAlbertQC) changed the title chore: Bump latest tested polars version to 2.1 chore: Bump latest tested polars version to 2.2 Dec 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the latest-tested Polars environment update.

No open issues 🎉

Review effort: Balanced

@delsner Daniel Elsner (delsner) left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AndreasAlbertQC
Andreas Albert (AndreasAlbertQC) merged commit df9e976 into main Dec 1, 2026
37 checks passed
@AndreasAlbertQC
Andreas Albert (AndreasAlbertQC) deleted the chore/bump-polars-latest-2 branch December 1, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants