[
https://issues.apache.org/jira/browse/HUDI-8666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
voon updated HUDI-8666:
-----------------------
Fix Version/s: 1.1.0
(was: 1.0.2)
> Revisit error message when timeline layout version cannot be read
> -----------------------------------------------------------------
>
> Key: HUDI-8666
> URL: https://issues.apache.org/jira/browse/HUDI-8666
> Project: Apache Hudi
> Issue Type: Improvement
> Reporter: Y Ethan Guo
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.1.0
>
>
> [https://github.com/apache/hudi/pull/12307#discussion_r1872244128]
> Revisit the following logic to see if the exception class
> (TableNotFoundException) is accurate.
> {code:java}
> if (layoutVersion.isPresent() && tableConfigVersion.isPresent()) {
> // Ensure layout version passed in config is not lower than the one
> seen in hoodie.properties
> 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");
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)