You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "melin (Jira)" <ji...@apache.org> on 2023/12/01 05:59:00 UTC

[jira] [Created] (SPARK-46195) Supports parse multiple sql statements

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org