1
0

[HUDI-4251] Fix the problem that the command 'commits sync' description does not match. (#5881)

This commit is contained in:
Forus
2022-06-21 07:03:58 +08:00
committed by GitHub
parent 17ac5a4573
commit ba4d5bd847

View File

@@ -442,8 +442,8 @@ public class CommitsCommand implements CommandMarker {
}
}
@CliCommand(value = "commits sync", help = "Compare commits with another Hoodie table")
public String syncCommits(@CliOption(key = {"path"}, help = "Path of the table to compare to") final String path) {
@CliCommand(value = "commits sync", help = "Sync commits with another Hoodie table")
public String syncCommits(@CliOption(key = {"path"}, help = "Path of the table to sync to") final String path) {
HoodieCLI.syncTableMetadata = HoodieTableMetaClient.builder().setConf(HoodieCLI.conf).setBasePath(path).build();
HoodieCLI.state = HoodieCLI.CLIState.SYNC;
return "Load sync state between " + HoodieCLI.getTableMetaClient().getTableConfig().getTableName() + " and "