fix(polars): raise minimum polars version to 1.20.0 - #2412
Open
fhoehle wants to merge 1 commit into
Open
Conversation
3 tasks
fhoehle
force-pushed
the
bugfix/2407
branch
2 times, most recently
from
July 17, 2026 11:22
5d95f81 to
43b34d0
Compare
1.20.0
Drop the pre-1.0 compatibility code and update the CI/nox matrix to 1.20.0, 1.33.1 and 1.42.1. Add a DeprecationWarning for Array(width=...) pointing to shape=. Closes unionai-oss#2407 Signed-off-by: fhoehle <fhoehle@users.noreply.github.com>
Author
|
@cosmicBboy, the failing check, Past runs on unrelated branches show the same job failing the same way (29499846387, 29466166130, 29454466833), so I guess the failure is unrelated and not anything introduced here. |
Collaborator
|
@fhoehle that test should be fixed on |
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.
Closes #2407 —
pandera[polars]failing during import withpolars=0.20.*present.As discussed in #2407, this bumps
pandera's minimum supportedpolarsversionfrom
0.20.0to1.20.0and (re-)enables testing against1.20.0,1.33.1, and1.42.1in CI.Changes
polarsdependency floor from0.20.0to1.20.0noxmatrix testspolarsversions:1.20.0,1.33.1,1.42.1get_lazyframe_*and callingcollect_schema()directlyDeprecationWarning/@deprecatedtoArray(width=...)pointing users to useArray(shape=...)Comments for reviewing
polarschanged its default decimal precision from28to38forpolars >= 1.34.pl.Series.unique()raises anInvalidOperationErrorforpolars < 1.21.0on Decimal columns.pandera.backends.polars.builtin_checks.unique_values_eqnow usespl.Series.to_list()instead ofpl.Series.unique().polars >= 1.20.0. The only user-facing change is aDeprecationWarningwhenArray(width=...)is used with a non-Nonewidth. I added a warning instead of droppingwidthto avoid breaking the user-facing API.