Repository navigation
chore: Bump latest tested polars version to 2.2 - #430
Merged
Andreas Albert (AndreasAlbertQC) merged 2 commits intoDec 1, 2026
Merged
Conversation
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>
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Andreas Albert (AndreasAlbertQC)
marked this pull request as ready for review
November 25, 2026 09:58
Andreas Albert (AndreasAlbertQC)
requested review from
Oliver Borchert (borchero) and
Daniel Elsner (delsner)
as code owners
November 25, 2026 09:58
Contributor
There was a problem hiding this comment.
🟢 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-latestfrom1.43.*to2.1.*. - Updates locked
polarsandpolars-runtime-32packages to2.1.0across 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
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>
Andreas Albert (AndreasAlbertQC)
deleted the
chore/bump-polars-latest-2
branch
December 1, 2026 11:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
polars 1.43 has a race condition when evaluating nested
arr.evalexpressions on multiple threads, which intermittently panics withThis already affects nested
dy.Array(dy.Array(...))columns with inner rules onmain(once a frame has more than ~24 rows), and it makestest_multidimensional_array_sample_is_validfrom #427 fail in roughly a quarter of the runs.Minimal reproduction in plain polars:
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
feature.polars-latestfrom1.43.*to2.2.*and update the lockfile. Onlypolarsandpolars-runtime-32change.1.35.*) and the package's lower bound are unchanged. Users on affected versions can fix the panic by upgrading polars.