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

Geser Dugarov closed HUDI-8996.
-------------------------------
    Resolution: Not A Bug

Issue was cause by intermediate changes in 
https://github.com/apache/hudi/pull/12796.
In final commit f5de6628b88c927ef2784d916014891c2feaa468 the issue was fixed.

> No delete records for Flink upsert if partition path changed
> ------------------------------------------------------------
>
>                 Key: HUDI-8996
>                 URL: https://issues.apache.org/jira/browse/HUDI-8996
>             Project: Apache Hudi
>          Issue Type: Bug
>            Reporter: Geser Dugarov
>            Assignee: Geser Dugarov
>            Priority: Major
>
> {code:sql}
> CREATE TABLE hudi_debug (
>     id INT,
>     part INT,
>     desc STRING,
>     PRIMARY KEY (id) NOT ENFORCED
> )  PARTITIONED BY (`part`) 
> WITH (
>     'connector' = 'hudi',
>     'path' = '.../hudi_debug',
>     'compaction.schedule.enabled'='false',
>     'compaction.async.enabled'='false',
>     'clean.async.enabled'='false',
>     'write.tasks'='1',
>     'read.tasks'='1',
>     'table.type' = 'MERGE_ON_READ',
>     'write.operation' = 'upsert',
>     'index.global.enabled' = 'true'
> );
> {code}
> {code:sql}
> INSERT INTO hudi_debug VALUES 
>     (1,100,'aaa'),
>     (2,200,'bbb')
>     (1,111,'aaa_new'),
>     (2,200,'bbb_new');
> {code}
> From code for {code:java}BucketAssignFunction::processRecord{code}, delete 
> record will be generated, and 
> {code:sql}
> SELECT * FROM hudi_debug;
> {code}
> should give
> {noformat}
>     id    part    desc
>     2     200     bbb_new
>     1     111     aaa_new
> {noformat}



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

Reply via email to