IMPALA-14464: Calcite planner should allow semi-colon in statement

The Calcite planner now handles a sql statement that has a semi-colon
at the end. Note that impala-shell doesn't pass the semi-colon into
the server. This is only seen with a direct call to the server.

Change-Id: Ie690159cd03f28f6b793628aa946292af71b6970
Reviewed-on: http://gerrit.cloudera.org:8080/23517
Reviewed-by: Joe McDonnell <joemcdonnell@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Steve Carlin
2025-09-25 12:10:55 -07:00
parent f0a781806f
commit 69813a8c40
2 changed files with 8 additions and 2 deletions

View File

@@ -1138,9 +1138,9 @@ SqlNode SqlStmt() :
}
{
(
stmt = OrderedQueryOrExpr(ExprContext.ACCEPT_QUERY)
stmt = OrderedQueryOrExpr(ExprContext.ACCEPT_QUERY) (<SEMICOLON>)*
|
stmt = SqlExplain()
stmt = SqlExplain() (<SEMICOLON>)*
)
{
return stmt;