[ 
https://issues.apache.org/jira/browse/SPARK-54876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-54876:
-----------------------------------
    Labels: pull-request-available  (was: )

> Spark SQL CLI:Incorrectly split the SQL statements.
> ---------------------------------------------------
>
>                 Key: SPARK-54876
>                 URL: https://issues.apache.org/jira/browse/SPARK-54876
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.0.1
>            Reporter: Fu Sheng
>            Priority: Minor
>              Labels: pull-request-available
>
> For the sql statement:
> {quote}val query = "CREATE OR REPLACE TEMPORARY VIEW A using parquet options 
> (path = 'xxx'); insert into table B select * from A /* comment */";
> {quote}
> When I use:
> {quote}val cli = new SparkSQLCLIDriver
> val res = cli.splitSemiColon(query)
> {quote}
> The query would be split to one statement: "CREATE OR REPLACE TEMPORARY VIEW 
> A using parquet options (path = 'xxx')"
> But the correct approach is to split it into two statements:
> The first: "CREATE OR REPLACE TEMPORARY VIEW A using parquet options (path = 
> 'xxx')"
> The second: "insert into table B select * from A /* comment */"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to