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

Add RowSelection::skipped_row_count #6429

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

progval
Copy link
Contributor

@progval progval commented Sep 20, 2024

Which issue does this PR close?

Closes #6428.

Rationale for this change

This spares some boilerplate to users, like Datafusion did here:

https://github.com/apache/datafusion/blob/f2159e6cae658a0a3f561ec2d15ea948213fd0f8/datafusion/core/src/datasource/physical_plan/parquet/page_filter.rs#L271-L277

Suggested by @alamb here: apache/datafusion#12545 (comment)

What changes are included in this PR?

Added RowSelection::skipped_row_count, and tests for both it and RowSelection::row_count

Are there any user-facing changes?

New method

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you @progval ❤️ and @mbrobbel for the review

@tustvold tustvold merged commit e8b9dad into apache:master Sep 20, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a method to return the number of skipped rows in a RowSelection
4 participants