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

fix: Adding with_row_index() to previously collected lazy scan does not take effect #18913

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Sep 25, 2024

Fixes #18892

This only happens if the LazyFrame is a direct scan without any subsequent operations.

@nameexhaustion nameexhaustion changed the title fix: with_row_index ignored on 2nd collect() for scan functions fix: 2nd collect() using with_row_index does not add row index on lazy scanning from file Sep 25, 2024
@nameexhaustion nameexhaustion changed the title fix: 2nd collect() using with_row_index does not add row index on lazy scanning from file fix: A 2nd collect() using with_row_index does not add row index on lazy scanning from file Sep 25, 2024
@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars and removed title needs formatting labels Sep 25, 2024
@nameexhaustion nameexhaustion changed the title fix: A 2nd collect() using with_row_index does not add row index on lazy scanning from file fix: Adding with_row_index() to previously collected lazy scan does not take effect Sep 25, 2024
@nameexhaustion nameexhaustion added the needs-bench Needs a benchmark run label Sep 25, 2024
@nameexhaustion nameexhaustion marked this pull request as ready for review September 25, 2024 05:44
Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.86%. Comparing base (77137ec) to head (d96b867).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-lazy/src/frame/mod.rs 95.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #18913   +/-   ##
=======================================
  Coverage   79.85%   79.86%           
=======================================
  Files        1521     1521           
  Lines      206835   206843    +8     
  Branches     2906     2906           
=======================================
+ Hits       165177   165185    +8     
  Misses      41110    41110           
  Partials      548      548           

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

@ritchie46 ritchie46 merged commit f246a4c into pola-rs:main Sep 25, 2024
29 of 32 checks passed
@nameexhaustion nameexhaustion deleted the cached-ir-invalidation branch September 27, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix needs-bench Needs a benchmark run python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding with_row_index() to a CSV LazyFrame does not always add the column
2 participants