Skip to content

chore(deps): bump polars 0.52 -> 0.53 + adopt new DataFrame::new signature#479

Merged
userFRM merged 2 commits into
mainfrom
chore/bump-polars-0.53
May 6, 2026
Merged

chore(deps): bump polars 0.52 -> 0.53 + adopt new DataFrame::new signature#479
userFRM merged 2 commits into
mainfrom
chore/bump-polars-0.53

Conversation

@userFRM
Copy link
Copy Markdown
Owner

@userFRM userFRM commented May 6, 2026

What

Bump polars 0.52.0 -> 0.53.0 and migrate generated frame code to the new DataFrame::new(height, Vec<Column>) signature.

Supersedes #464 (dependabot's bare bump alone fails to compile because polars 0.53 changed the signature).

Why

polars 0.53 reshapes the public DataFrame::new constructor from (Vec<Column>) -> PolarsResult<Self> to (usize, Vec<Column>) -> PolarsResult<Self>, where the new usize argument is the declared row count. The old signature is gone, so the bare bump produced 16 compile errors in crates/thetadatadx/src/frames_generated.rs.

How

  • Bump polars to 0.53 in crates/thetadatadx/Cargo.toml (cherry-picked from chore(deps): bump polars from 0.52.0 to 0.53.0 #464)
  • Update the generator template at crates/thetadatadx/build_support/ticks/rust_frames.rs:284 to emit DataFrame::new(n, vec![...]) (where n = self.len() is already in scope)
  • Regenerate frames_generated.rs via generate_sdk_surfaces

Test plan

  • cargo test -p thetadatadx --features polars --test test_frames_polars (9 passing)
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo run -p thetadatadx --bin generate_sdk_surfaces --features config-file -- --check

Closes #464.

userFRM and others added 2 commits May 6, 2026 09:48
polars 0.53 changes `DataFrame::new(Vec<Column>)` to
`DataFrame::new(usize, Vec<Column>)`. The first argument is the
declared row count (`height`) so empty inputs still construct typed
zero-row frames. Pass the existing `n = self.len()` binding from the
template; regen `frames_generated.rs`.

Tested locally with `cargo test -p thetadatadx --features polars
--test test_frames_polars` (9 passing).
Bumps [polars](https://github.com/pola-rs/polars) from 0.52.0 to 0.53.0.
- [Release notes](https://github.com/pola-rs/polars/releases)
- [Commits](pola-rs/polars@rs-0.52.0...rs-0.53.0)

---
updated-dependencies:
- dependency-name: polars
  dependency-version: 0.53.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@userFRM userFRM merged commit 02eb04a into main May 6, 2026
32 checks passed
@userFRM userFRM deleted the chore/bump-polars-0.53 branch May 6, 2026 08:07
userFRM added a commit that referenced this pull request May 6, 2026
* chore(release): 8.0.27

- polars 0.52 -> 0.53 (#479)
- conditions code 61 scrubbed to PRICEVOLUMEADJ (#480)

* chore(release): refresh sub-Cargo.lock files for 8.0.27

The workspace bump only updated the root Cargo.lock; tools/mcp,
tools/server, sdks/python, sdks/typescript carry their own lockfiles
that pin thetadatadx by version. CI's --locked check failed because
they still pinned 8.0.26.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant