-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-6941] Fix partition pruning for multiple partition fields #9863
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
Conversation
| } | ||
| } | ||
|
|
||
| @Disabled("HUDI-6320") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test will be useful when HUDI-6320 is fixed properly.
| || classOf[TimestampBasedAvroKeyGenerator].getName.equalsIgnoreCase(keyGeneratorClassName) | ||
| || classOf[CustomKeyGenerator].getName.equalsIgnoreCase(keyGeneratorClassName) | ||
| || classOf[CustomAvroKeyGenerator].getName.equalsIgnoreCase(keyGeneratorClassName)) { | ||
| || classOf[TimestampBasedAvroKeyGenerator].getName.equalsIgnoreCase(keyGeneratorClassName)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should also fix HUDI-6914
danny0405
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, thanks for taking care.
| if (listingModeOverride != null) { | ||
| properties.setProperty(DataSourceReadOptions.FILE_INDEX_LISTING_MODE_OVERRIDE.key, listingModeOverride) | ||
| } | ||
| val partitionColumns = metaClient.getTableConfig.getPartitionFields |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice,and in our condition only merge this code would work well #9862 then we would have more test for it
|
After apply this patch, some cases would mistaken choose broadcast hash join even for big table. In those cases, |
Change Logs
Reverts 2d779fb and fixes #9858
Impact
Fixes partition pruning and improves performance for a table with multiple partition fields.

After the fix, only 1 partition is listed as in the screenshot below.
Risk level (write none, low medium or high below)
none
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist