You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/01/04 13:56:00 UTC
[jira] [Updated] (SPARK-54876) Spark SQL CLI:Incorrectly split the SQL statements.
[ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org