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

parquet: Add row_groups_matched_{statistics,bloom_filter} statistics #9640

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

progval
Copy link
Contributor

@progval progval commented Mar 16, 2024

Which issue does this PR close?

Closes #9639.

Rationale for this change

This helps diagnostic whether a Bloom filter mismatches (because of high false-positive probability caused by suboptimal tuning) or is not used at all.

What changes are included in this PR?

Add the statistics and add corresponding assertions in tests.

Given the increasing number of assertions, I made them print which one failed, so we don't have to refer to line numbers when reading test failures.

Are these changes tested?

It's mostly just additional tests.

The UI change affects a test, which I updated accordingly.

Are there any user-facing changes?

This adds two metrics in the EXPLAIN ANALYZE output.

progval added 2 commits March 16, 2024 17:06
This helps diagnostic whether a Bloom filter mismatches (because of high
false-positive probability caused by suboptimal tuning) or is not used at all.
@progval progval changed the title Test row group prune Add row_groups_matched_{statistics,bloom_filter} statistics Mar 16, 2024
@github-actions github-actions bot added the core Core DataFusion crate label Mar 16, 2024
@progval progval changed the title Add row_groups_matched_{statistics,bloom_filter} statistics parquet: Add row_groups_matched_{statistics,bloom_filter} statistics Mar 16, 2024
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 for this contribution @progval -- this PR is wonderfully commented, and tested 🏆

A very nice first contribution indeed

@alamb alamb merged commit e53eb03 into apache:main Mar 18, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display number of row groups matched by statistics or bloom filters
2 participants