jonvex commented on code in PR #12307:
URL: https://github.com/apache/hudi/pull/12307#discussion_r1855573448
##########
hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableMetaClient.java:
##########
@@ -176,8 +177,10 @@ protected HoodieTableMetaClient(HoodieStorage storage,
String basePath, boolean
checkArgument(layoutVersion.get().compareTo(tableConfigVersion.get()) >=
0,
"Layout Version defined in hoodie properties has higher version (" +
tableConfigVersion.get()
+ ") than the one passed in config (" + layoutVersion.get() +
")");
+ } else if (layoutVersion.isEmpty() && tableConfigVersion.isEmpty()) {
+ throw new TableNotFoundException("Table does not exist");
}
- this.timelineLayoutVersion = layoutVersion.orElseGet(() ->
tableConfig.getTimelineLayoutVersion().get());
+ this.timelineLayoutVersion =
layoutVersion.orElseGet(tableConfigVersion::get);
Review Comment:
take a look at the stack trace from the jira ticket
--
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]