Xianyin Xin created SPARK-28303:
-----------------------------------

             Summary: Support DELETE/UPDATE/MERGE Operations in DataSource V2
                 Key: SPARK-28303
                 URL: https://issues.apache.org/jira/browse/SPARK-28303
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 2.4.3
            Reporter: Xianyin Xin


Now many datasources (delta, jdbc, hive with transaction support, kudu, etc) 
supports deleting/updating data. It's necessary to add related APIs in the 
datasource V2 API sets.

For example, we suggest add the below interface in V2 API,

```java

public interface SupportsDelete extends WriteBuilder {

  WriteBuilder delete(Filter[] filters);

}

```

which can delete data by simple predicates (complicated cases like correlated 
subquery is not considered currently).

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to