Upgrade polars 0.48.1 → 0.54.4#41
Open
ptournaris-ai wants to merge 1 commit into
Open
Conversation
- drop removed 'streaming' feature (engine stabilized upstream) - bump MSRV to 1.88 (polars 0.54 deps simd-json/sysinfo require it) - DataFrame::get_columns() -> columns() - DataFrame::get_column_names_str() -> get_column_names() - AnyValue::Decimal gained a field: (value, scale) -> (value, precision, scale) - DataFrame::new(cols) -> DataFrame::new(height, cols) (tests)
This was referenced Jun 23, 2026
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.
Upgrade polars 0.48.1 → 0.54.4
Bumps
polarsfrom0.48.1to0.54.4and adapts to its breaking API changes.Motivation
The public
DataframeOperatortrait returnspolars::prelude::DataFrame, so the pinned polars version is part of this crate's public API: downstream implementors are transitively locked to polars 0.48 and can't upgrade their own polars without aDataFrametype mismatch (Cargo otherwise compiles two polars versions side by side). This unblocks them and picks up the stabilized streaming engine and improved cloud Parquet pushdown.Changes
Dependencies
polars0.48.1→0.54.4; drop the removedstreamingfeature (engine is now always on).simd-json/sysinfounder polars 0.54).rust-toolchain.tomlbumped accordingly.API migration
DataFrame::get_columns()→DataFrame::columns()(postgres_operator_impl.rs,cdc_operator.rs).DataFrame::get_column_names_str()→DataFrame::get_column_names(), collected toVec<String>to keep the existingretain/joinlogic (postgres_operator_impl.rs).AnyValue::Decimalis now(value, precision, scale); the scale used to buildrust_decimal::Decimalmoved from the 2nd to the 3rd field. Updated the match toDecimal(value, _precision, scale)so numeric output is unchanged (postgres_row_struct.rs).DataFrame::new(cols)→DataFrame::new(height, cols)in unit tests.Verification
cargo check --workspace --all-targetsis clean on the new version. The DB-backed integration tests require the docker-compose Postgres/MinIO fixtures and were not run in this environment.Compatibility
Breaking for consumers: the public
DataFrametype changes major polars version and MSRV rises to 1.88. Recommend cutting this as a new minor (e.g.0.2.0).