diff --git a/async-query-core/src/main/java/org/opensearch/sql/spark/utils/SQLQueryUtils.java b/async-query-core/src/main/java/org/opensearch/sql/spark/utils/SQLQueryUtils.java index 7550de2f1e..51250a6c53 100644 --- a/async-query-core/src/main/java/org/opensearch/sql/spark/utils/SQLQueryUtils.java +++ b/async-query-core/src/main/java/org/opensearch/sql/spark/utils/SQLQueryUtils.java @@ -149,6 +149,18 @@ public Void visitStatementDefault(SqlBaseParser.StatementDefaultContext ctx) { getValidationErrors().clear(); return super.visitStatementDefault(ctx); } + + @Override + public Void visitShowTables(SqlBaseParser.StatementDefaultContext ctx) { + getValidationErrors().clear(); + return super.visitStatementDefault(ctx); + } + + @Override + public Void visitShowTableExtended(SqlBaseParser.StatementDefaultContext ctx) { + getValidationErrors().clear(); + return super.visitStatementDefault(ctx); + } } public static class SparkSqlTableNameVisitor extends SqlBaseParserBaseVisitor {