Revisit error message when timeline layout version cannot be read
[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}
JIRA info
- Link: https://issues.apache.org/jira/browse/HUDI-8666
- Type: Improvement
- Fix version(s):
- 1.1.0
Linked PR(s)
- https://github.com/apache/hudi/pull/12867