Skip to content

MOR seems not working as expected very well in some corner case #17515

@bithw1

Description

@bithw1

Describe the problem you faced

Hi,

I have a simple MOR table, defined as follows:

create table test_hudi_table_mor (
a int,
b int,
c int
) using hudi
 partitioned by (c)
 options (
  primaryKey = 'a',
  preCombineField = 'b',
  type = 'mor'
 );

Then, I do insert twice,

insert into test_hudi_table_mor  values(1,1,1);
insert into test_hudi_table_mor  values(2,2,2);

When I looked at the files created, I find two parquet files, no log files

Then, I do one update

 update test_hudi_table_mor  set b = 11 where a =1;

Then, I find a log file, so I would ask, why the two insert operations doesn't generate log files and only update generate, thanks.

Where the code in Hudi that I can refer to see why the behavior works like this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions