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(rust,python): incomplete reading of list types from parquet #11578

Merged
merged 2 commits into from
Oct 7, 2023

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Oct 6, 2023

fixes #11548.

Error turned out to be from arrow2 / nano-arrow. The reading impl for nested types appears to be copied from the non-nested impl, and ended up inheriting some assumptions that weren't correct for nested types - namely it stopped loading the moment the row count matched the total. In practice this caused the last row in every row group for lists to be incomplete if their data was stored in more than one page.

@github-actions github-actions bot added the fix Bug fix label Oct 6, 2023
@nameexhaustion nameexhaustion changed the title fix (rust,python): incomplete reading of list types from parquet fix(rust,python): incomplete reading of list types from parquet Oct 6, 2023
@github-actions github-actions bot added python Related to Python Polars rust Related to Rust Polars labels Oct 6, 2023
@nameexhaustion nameexhaustion marked this pull request as ready for review October 6, 2023 19:51
Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@ritchie46 ritchie46 merged commit 6cd1825 into pola-rs:main Oct 7, 2023
24 checks passed
@nameexhaustion nameexhaustion deleted the parquet-list branch October 7, 2023 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parquet reading silently drops data
2 participants