Skip to content

Conversation

@zhangyue19921010
Copy link
Contributor

Change Logs

Enhance PartitionBucketIndexManager Support

  1. Show Config Commands
  2. Rollback Bucket Rescale Command
  3. Dry-Run
  4. Add Expression Command

Impact

PartitionBucketIndexManager

Risk level (write none, low medium or high below)

low

Documentation Update

Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".

  • The config description must be updated if new configs are added or the default value of the configs are changed
  • Any new feature or user-facing change requires updating the Hudi website. Please create a Jira ticket, attach the
    ticket number here and follow the instruction to make
    changes to the website.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@github-actions github-actions bot added the size:L PR with lines of changes in (300, 1000] label Apr 8, 2025
@zhangyue19921010
Copy link
Contributor Author

@hudi-bot run azure


public static List<PartitionBucketIndexHashingConfig> getAllHashingConfig(HoodieTableMetaClient metaClient) throws IOException {
String basePath = metaClient.getBasePath().toString();
List<StoragePath> allHashingConfig = getCommittedHashingConfigInstants(metaClient).stream().map(instant -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

allHashingConfig -> allHashingConfigPaths

ValidationUtils.checkArgument(instantToLoad.isPresent(), "Can not load latest hashing config " + instantToLoad);
Option<PartitionBucketIndexHashingConfig> latestHashingConfig = loadHashingConfig(metaClient.getStorage(), getHashingConfigPath(metaClient.getBasePath().toString(), instantToLoad.get()));
ValidationUtils.checkArgument(latestHashingConfig.isPresent(), "Can not load latest hashing config " + instantToLoad);
Option<StoragePath> hashingConfigToLoad = getHashingConfigToLoad(metaClient, Option.empty());
Copy link
Contributor

Choose a reason for hiding this comment

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

hashingConfigPathToLoad

Option<PartitionBucketIndexHashingConfig> latestHashingConfig = loadHashingConfig(metaClient.getStorage(),
getHashingConfigPath(metaClient.getBasePath().toString(), hashingConfigInstantToLoad.get()));
ValidationUtils.checkArgument(latestHashingConfig.isPresent(), "Can not load hashing config " + hashingConfigInstantToLoad + " based on " + instant);
Option<StoragePath> hashingConfigToLoad = getHashingConfigToLoad(metaClient, Option.of(instant));
Copy link
Contributor

Choose a reason for hiding this comment

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

hashingConfigPathToLoad

dataFrame)

val details = s"Expression: $expression, Bucket Number: $bucketNumber, Dry Run: $dryRun"
val details = s"Expression: $expression, Bucket Number: $bucketNumber, Dry Run: $dryRun"
Copy link
Contributor

Choose a reason for hiding this comment

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

is the option val case-sensitive from users?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As a config name, it is case-sensitive.
To make it more user-friendly, change the config name from dryRun to dry_run like other Hoodie call command configs such as RollbackToSavepointProcedure => instant_time config name

@zhangyue19921010
Copy link
Contributor Author

@hudi-bot run azure

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@danny0405
Copy link
Contributor

The Azure CI failure is a known env issue: https://dev.azure.com/apachehudi/hudi-oss-ci/_build/results?buildId=4805&view=results

@danny0405 danny0405 merged commit 663b89f into master Apr 11, 2025
59 of 60 checks passed
@zhangyue19921010 zhangyue19921010 deleted the HUDI-8990-Part3 branch June 18, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L PR with lines of changes in (300, 1000]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants