[
https://issues.apache.org/jira/browse/HUDI-2968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480988#comment-17480988
]
Yann Byron commented on HUDI-2968:
----------------------------------
[~vinoth]
if source has fields which same as target.`priamryKey` and 'preCombineField',
it works.
I also need to perfect `merge into` in SQL, show which cases will work clearly,
and add UT for this. Thanking for your reminding.
> Support Delete/Update using non-pk fields
> -----------------------------------------
>
> Key: HUDI-2968
> URL: https://issues.apache.org/jira/browse/HUDI-2968
> Project: Apache Hudi
> Issue Type: Task
> Components: spark
> Reporter: pengzhiwei
> Assignee: Yann Byron
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 0.11.0
>
>
> Allow to delete/update using non-pk fields
> {code:java}
> create table h0 (
> id int,
> name string,
> price double
> ) using hudi
> options (primaryKey = 'id');
> update h0 set price = 10 where name = 'foo';
> delete from h0 where name = 'foo';
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)