prashantwason commented on a change in pull request #4038:
URL: https://github.com/apache/hudi/pull/4038#discussion_r756549474
##########
File path: hudi-cli/src/main/java/org/apache/hudi/cli/commands/TableCommand.java
##########
@@ -170,6 +182,67 @@ public String fetchTableSchema(
}
}
+ @CliCommand(value = "table recover-configs", help = "Recover table configs,
from update/delete that failed midway.")
+ public String recoverTableConfig() throws IOException {
+ HoodieCLI.refreshTableMetadata();
+ HoodieTableMetaClient client = HoodieCLI.getTableMetaClient();
+ Path metaPathDir = new Path(client.getBasePath(), METAFOLDER_NAME);
+ HoodieTableConfig.recover(client.getFs(), metaPathDir);
+ return descTable();
+ }
+
+ @CliCommand(value = "table update-configs", help = "Update the table configs
with configs with provided file.")
Review comment:
IMO, this is more like replace-configs rather than updating existing
ones.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]