[ 
https://issues.apache.org/jira/browse/SPARK-28303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17641696#comment-17641696
 ] 

Charlie commented on SPARK-28303:
---------------------------------

Hi, [~xinxianyin] . I have only seen DSv2 API supports DELETE 
(SupportsDelete/SupportsDeleteV2) API, not any API about UPDATE/MERGE, would 
you support it in the future? 

> 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: 3.1.0
>            Reporter: Xianyin Xin
>            Assignee: Xianyin Xin
>            Priority: Major
>             Fix For: 3.0.0
>
>
> 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,
> {code:java|title=SupportsDelete.java|borderStyle=solid}
> public interface SupportsDelete {
>   WriteBuilder delete(Filter[] filters); 
> }
> {code}
> which can delete data by simple predicates (complicated cases like correlated 
> subquery is not considered currently).
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to