Skip to content

Add support for data skipping using column stats #25601

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

codope
Copy link
Contributor

@codope codope commented Apr 16, 2025

Description

This PR is stacked on #25599

  • Use column stats stored in Hudi's metadata table to skip files - implemented in HudiFileSkippingManager
  • Some changes in HudiSplitSource and related classes to support above.
  • Add tests to verify both partition pruning and file skipping using stats.

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

## Hudi
* Support data skipping using statistics in Hudi metadata table.

@cla-bot cla-bot bot added the cla-signed label Apr 16, 2025
@github-actions github-actions bot added hudi Hudi connector hive Hive connector labels Apr 16, 2025
@codope codope requested review from ebyhr and yihua April 16, 2025 16:34
Copy link
Member

@ebyhr ebyhr left a comment

Choose a reason for hiding this comment

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

Please fix CI failures.

@ksoullpwk
Copy link

I haven’t gone through the entire diff yet, but I have a question about the hudi.metadata-enabled setting. If it's enabled, and I run a query that joins two Hudi tables—one with column stats enabled during inserts and the other without—will the query fail?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed hive Hive connector hudi Hudi connector
Development

Successfully merging this pull request may close these issues.

3 participants