bvaradar commented on a change in pull request #700: HUDI-138 - Meta Files
handling also need to support consistency guard
URL: https://github.com/apache/incubator-hudi/pull/700#discussion_r296458115
##########
File path: hoodie-cli/src/main/java/com/uber/hoodie/cli/HoodieCLI.java
##########
@@ -47,11 +59,11 @@ public static boolean initConf() {
public static void initFS(boolean force) throws IOException {
if (fs == null || force) {
- fs = FileSystem.get(conf);
+ fs = (tableMetadata != null) ? tableMetadata.getFs() :
FileSystem.get(conf);
}
}
- public static void setTableMetadata(HoodieTableMetaClient tableMetadata) {
- HoodieCLI.tableMetadata = tableMetadata;
+ public static void refreshTableMetadata() {
+ setBasePath(basePath);
Review comment:
Removed setting tableMetaClient in setBasePath. Introduced a new method
"connectTo" to switch to a different dataset within same CLI session.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services