Skip to content

Commit f8403a3

Browse files
githubgxllketor
authored andcommitted
[dingo-executor] Fix creating table successfully with an invalid create table statement
1 parent 7f5d4cc commit f8403a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dingo-driver/host/src/main/java/io/dingodb/driver/DingoDriverParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public Meta.Signature parseQuery(
288288
} catch (IllegalArgumentException e) {
289289
// Method not found: execute([class org.apache.calcite.sql.ddl.SqlCreateTable,org.apache.calcite.jdbc.CalcitePrepare$Context])
290290
LogUtils.error(log, e.getMessage(), e);
291-
if (!(sqlNode instanceof DingoSqlCreateTable)) {
291+
if (!(sqlNode instanceof DingoSqlCreateTable) || retry <= 0) {
292292
throw e;
293293
}
294294
}

0 commit comments

Comments
 (0)