melin created SPARK-46195:
-----------------------------
Summary: Supports parse multiple sql statements
Key: SPARK-46195
URL: https://issues.apache.org/jira/browse/SPARK-46195
Project: Spark
Issue Type: New Feature
Components: SQL
Affects Versions: 4.0.0
Reporter: melin
In the SqlBaseParser.g4 file, add the following code to support the parsing of
multiple sql. select * from (select * from test), which resolves into two
statements. Need to add alias
{code:java}
sqlStatements
: singleStatement* EOF
;
singleStatement
: statement SEMICOLON?
; {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]