Skip to content

Commit 1f1aa9c

Browse files
authored
[BugFix] fix iceberg view sql test (backport #66126) (#66229)
Signed-off-by: SevenJ <wenjun7j@gmail.com>
1 parent bdb984d commit 1f1aa9c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

fe/fe-core/src/main/java/com/starrocks/connector/iceberg/CachingIcebergCatalog.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,10 @@ public Table getTable(ConnectContext connectContext, String dbName, String table
221221
IcebergTableCacheKey key = new IcebergTableCacheKey(icebergTableName, connectContext);
222222
try {
223223
return tables.get(key);
224+
} catch (NoSuchTableException e) {
225+
throw e;
224226
} catch (Exception e) {
225-
Throwable c = e.getCause();
226-
if (c instanceof NoSuchTableException) {
227-
throw (NoSuchTableException) c;
228-
}
229-
throw new StarRocksConnectorException("Load table failed: " + dbName + "." + tableName, c);
227+
throw new StarRocksConnectorException("Load table failed: " + dbName + "." + tableName, e);
230228
}
231229
}
232230

0 commit comments

Comments
 (0)