Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rust): access OptState in LazyFrame to unit-test optimization toggle methods. #9883

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

sorhawell
Copy link
Contributor

@sorhawell sorhawell commented Jul 14, 2023

rust-polars LazyFrame is wrapped in e.g. py-polars r-polars nodejs-polars and many other rust projects.
It is difficult to unit-test optimizations switches in OptState, because there is no public getter-method.
Setting such states has had a bug in the past.

With get_current_optimizations() in rust-polars, it is straight forward to unit-test optimization choices.

If PR is OK I can also add unit-tests for py-polars

@sorhawell sorhawell requested a review from ritchie46 as a code owner July 14, 2023 13:47
@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature rust Related to Rust Polars labels Jul 14, 2023
@ritchie46
Copy link
Member

Yeap, seems fine. 👍

@ritchie46 ritchie46 merged commit 134d43e into pola-rs:main Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants