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

Polars LazyFrames are validated at the schema-level by default #1534

Merged
merged 7 commits into from
Mar 24, 2024

Conversation

cosmicBboy
Copy link
Collaborator

Fixes #1528

This PR modifies the default PANDERA_VALIDATION_DEPTH environment setting to None. This allows for setting default validation behavior for the polars backend. If the environment variable is not set, then LazyFrame doesn't perform any data-level validation. It will only check schema-level properties of the LazyFrame. This behavior can be overriden by explicitly setting export PANDERA_VALIDATION_DEPTH=SCHEMA_AND_DATA.

When doing pl.DataFrame validation it will perform both schema- and data-level validations.

Signed-off-by: cosmicBboy <niels.bantilan@gmail.com>
Signed-off-by: cosmicBboy <niels.bantilan@gmail.com>
Signed-off-by: cosmicBboy <niels.bantilan@gmail.com>
@cosmicBboy cosmicBboy changed the title Feature/1528 Feature/1528: Polars LazyFrames are validated at the schema-level by default Mar 19, 2024
Signed-off-by: cosmicBboy <niels.bantilan@gmail.com>
Signed-off-by: cosmicBboy <niels.bantilan@gmail.com>
Signed-off-by: cosmicBboy <niels.bantilan@gmail.com>
@cosmicBboy cosmicBboy changed the title Feature/1528: Polars LazyFrames are validated at the schema-level by default Polars LazyFrames are validated at the schema-level by default Mar 22, 2024
Signed-off-by: cosmicBboy <niels.bantilan@gmail.com>
@cosmicBboy cosmicBboy merged commit d95c068 into main Mar 24, 2024
72 checks passed
@cosmicBboy cosmicBboy deleted the feature/1528 branch March 24, 2024 02:02
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.

Polars LazyFrame validation only does schema checks, DataFrame validation does full validation
1 participant