[HUDI-7030] Commit-based Clustering Plan Strategy#18251
Open
prashantwason wants to merge 2 commits intoapache:masterfrom
Open
[HUDI-7030] Commit-based Clustering Plan Strategy#18251prashantwason wants to merge 2 commits intoapache:masterfrom
prashantwason wants to merge 2 commits intoapache:masterfrom
Conversation
Summary: The first version of commit based clustering plan is scope to append only ingestion jobs Test Plan: unit tests Reviewers: O955 Project Hoodie Project Reviewer: Add blocking reviewers, #hoodie_blocking_reviewers, #ldap_hudi, vamshi, bkrishen, ureview Reviewed By: O955 Project Hoodie Project Reviewer: Add blocking reviewers, #hoodie_blocking_reviewers, #ldap_hudi, vamshi, bkrishen Tags: #has_java JIRA Issues: HUDI-7030 Differential Revision: https://code.uberinternal.com/D18833959
Summary: create clustering groups for remaining partitions Test Plan: unit tests Reviewers: O955 Project Hoodie Project Reviewer: Add blocking reviewers, #hoodie_blocking_reviewers, #ldap_hudi, ureview, vamshi Reviewed By: O955 Project Hoodie Project Reviewer: Add blocking reviewers, #hoodie_blocking_reviewers, #ldap_hudi, vamshi Subscribers: vamshi Tags: #has_java JIRA Issues: HUDI-7030, HUDI-7197 Differential Revision: https://code.uberinternal.com/D18935003
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #18251 +/- ##
============================================
- Coverage 57.29% 57.23% -0.07%
- Complexity 18542 18559 +17
============================================
Files 1945 1946 +1
Lines 106202 106395 +193
Branches 13130 13151 +21
============================================
+ Hits 60848 60891 +43
- Misses 39628 39780 +152
+ Partials 5726 5724 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new commit-based clustering plan strategy for Apache Hudi that processes data files based on their commit/ingestion order. This is particularly useful for streaming ingestion workloads where:
Key Changes
CommitBasedClusteringPlanStrategyclass - Processes commits in order and generates clustering plans based on commit patternsConfiguration
hoodie.clustering.plan.strategy.classCommitBasedClusteringPlanStrategyhoodie.clustering.plan.strategy.max.bytes.per.grouphoodie.clustering.plan.strategy.max.num.groupshoodie.clustering.plan.last.commitTest plan
CommitBasedClusteringPlanStrategy(7 tests, all passing)testGenerateClusteringPlanWithNoCommitstestGenerateClusteringPlanWithoutCheckpointtestGenerateClusteringPlanWithSingleCommitSinglePartition(parameterized)testGenerateClusteringPlanWithSingleCommitMultiPartitionstestGenerateClusteringPlanWithMultiCommitstestGenerateClusteringPlanWithReplaceCommit🤖 Generated with Claude Code