[
https://issues.apache.org/jira/browse/SPARK-54876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-54876.
---------------------------------
Fix Version/s: 4.2.0
Resolution: Fixed
Issue resolved by pull request 55466
[https://github.com/apache/spark/pull/55466]
> The splitSemiColon function should correctly split 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
> Assignee: Fu Sheng
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.2.0
>
>
> 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]