[
https://issues.apache.org/jira/browse/HUDI-8996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17927622#comment-17927622
]
Geser Dugarov commented on HUDI-8996:
-------------------------------------
It will be fixed by 17f7f47f1da0ea81c6593f6dee29fb2a4bc8f3a1 in
https://github.com/apache/hudi/pull/12796.
> 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)