[ https://issues.apache.org/jira/browse/SPARK-40956?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-40956. --------------------------------- Fix Version/s: 3.4.0 Resolution: Fixed Issue resolved by pull request 38404 [https://github.com/apache/spark/pull/38404] > 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 > Fix For: 3.4.0 > > > Proposing syntax > {code:java} > INSERT INTO tbl REPLACE whereClause identifierList{code} > to the spark SQL, as the equivalent of > [dataframe.overwrite()|https://github.com/apache/spark/blob/35d00df9bba7238ad4f409999617fae4d04ddbfd/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriterV2.scala#L163] > command. > > For Example > {code:java} > INSERT INTO table1 REPLACE WHERE key = 3 SELECT * FROM table2{code} > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org