This is an automated email from the ASF dual-hosted git repository.
sunnianjun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 97349ba3651 Fixing ExternalSQLParserIT not reporting correctly.
(#27471)
97349ba3651 is described below
commit 97349ba3651947d1fac8707c892e3391c24f9fc0
Author: Cong Hu <[email protected]>
AuthorDate: Wed Jul 26 13:54:48 2023 +0800
Fixing ExternalSQLParserIT not reporting correctly. (#27471)
---
.../shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java
index fea86c0141b..70baa9a013d 100644
---
a/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java
+++
b/test/it/parser/src/main/java/org/apache/shardingsphere/test/it/sql/parser/external/ExternalSQLParserIT.java
@@ -19,6 +19,7 @@ package org.apache.shardingsphere.test.it.sql.parser.external;
import com.google.common.base.Preconditions;
import lombok.SneakyThrows;
+import
org.apache.shardingsphere.infra.util.exception.external.ShardingSphereExternalException;
import org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPILoader;
import org.apache.shardingsphere.sql.parser.api.CacheOption;
import org.apache.shardingsphere.sql.parser.api.SQLParserEngine;
@@ -61,6 +62,7 @@ public abstract class ExternalSQLParserIT {
ParseASTNode parseASTNode = new SQLParserEngine(databaseType,
new CacheOption(128, 1024L)).parse(sql, false);
new SQLStatementVisitorEngine(databaseType,
true).visit(parseASTNode);
isSuccess = true;
+ } catch (final ShardingSphereExternalException |
ClassCastException | IllegalArgumentException | IndexOutOfBoundsException
ignore) {
} finally {
resultReporter.printResult(sqlCaseId, databaseType, isSuccess,
sql);
}