[ 
https://issues.apache.org/jira/browse/HUDI-2968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Raymond Xu updated HUDI-2968:
-----------------------------
    Description: 
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}

  was:
Allow to delete/update a non-pk table.
{code:java}
create table h0 (
  id int,
  name string,
  price double
) using hudi;

delete from h0 where id = 10;
update h0 set price = 10 where id = 12;

{code}


> Support Delete/Update using non-pk fields
> -----------------------------------------
>
>                 Key: HUDI-2968
>                 URL: https://issues.apache.org/jira/browse/HUDI-2968
>             Project: Apache Hudi
>          Issue Type: Sub-task
>          Components: Spark Integration
>            Reporter: pengzhiwei
>            Assignee: Yann Byron
>            Priority: Critical
>             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)

Reply via email to