You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "chengyan fu (Jira)" <ji...@apache.org> on 2022/10/28 17:01:00 UTC
[jira] [Updated] (SPARK-40956) SQL Equivalent for Dataframe overwrite command
[ https://issues.apache.org/jira/browse/SPARK-40956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
chengyan fu updated SPARK-40956:
--------------------------------
Description:
{code:java}
{code}
Proposing syntax ```INSERT INTO tbl REPLACE whereClause identifierList``` to the spark SQL, as the equivalent of dataframe overwrite command.
For Example
```INSERT INTO table1 REPLACE WHERE key = 3 SELECT * FROM table2``` will, in an atomic operation, 1) delete rows with key = 3 and 2) insert rows from table2
was:
Proposing syntax ```INSERT INTO tbl REPLACE whereClause identifierList``` to the spark SQL, as the equivalent of dataframe overwrite command.
For Example
```INSERT INTO table1 REPLACE WHERE key = 3 SELECT * FROM table2``` will, in an atomic operation, 1) delete rows with key = 3 and 2) insert rows from table2
> SQL Equivalent for Dataframe overwrite command
> ----------------------------------------------
>
> Key: SPARK-40956
> URL: https://issues.apache.org/jira/browse/SPARK-40956
> Project: Spark
> Issue Type: New Feature
> Components: SQL
> Affects Versions: 3.2.2
> Reporter: chengyan fu
> Priority: Minor
>
>
> {code:java}
> {code}
> Proposing syntax ```INSERT INTO tbl REPLACE whereClause identifierList``` to the spark SQL, as the equivalent of dataframe overwrite command.
>
> For Example
> ```INSERT INTO table1 REPLACE WHERE key = 3 SELECT * FROM table2``` will, in an atomic operation, 1) delete rows with key = 3 and 2) insert rows from table2
>
>
--
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