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

refactor: move describe to IR instead of DSL #16191

Merged
merged 3 commits into from
May 14, 2024

Conversation

coastalwhite
Copy link
Collaborator

This PR moves the LazyFrame::describe_optimized_plan to using the IR instead of DslPlan. Most code is based on the old formatting code and is located in the polars-plan/src/logical-plan/alp/format.rs file.

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars labels May 13, 2024
@coastalwhite
Copy link
Collaborator Author

There are quite some tests that are failing. I have some trouble running test suite locally, will try to get it to run.

Copy link

codecov bot commented May 14, 2024

Codecov Report

Attention: Patch coverage is 78.87931% with 98 lines in your changes are missing coverage. Please review.

Project coverage is 80.99%. Comparing base (db18aa9) to head (c7a6072).
Report is 13 commits behind head on main.

Files Patch % Lines
crates/polars-plan/src/logical_plan/alp/format.rs 79.31% 90 Missing ⚠️
crates/polars-lazy/src/frame/mod.rs 44.44% 5 Missing ⚠️
crates/polars-plan/src/logical_plan/alp/mod.rs 85.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16191      +/-   ##
==========================================
- Coverage   80.99%   80.99%   -0.01%     
==========================================
  Files        1392     1393       +1     
  Lines      178920   179440     +520     
  Branches     2892     2907      +15     
==========================================
+ Hits       144923   145333     +410     
- Misses      33500    33601     +101     
- Partials      497      506       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit 80442f1 into pola-rs:main May 14, 2024
26 checks passed
@coastalwhite coastalwhite deleted the describe-using-ir branch May 14, 2024 11:43
MarcoGorelli pushed a commit to MarcoGorelli/polars that referenced this pull request May 15, 2024
@c-peters c-peters added the accepted Ready for implementation label May 21, 2024
Wouittone pushed a commit to Wouittone/polars that referenced this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants