Updated on 2025-04-15 GMT+08:00

Maintenance Specifications for Spark on Hudi Table Data

Do not modify key table attribute information using the alter command: type/primaryKey/preCombineField/hoodie.index.type.

Incorrect example: executing the following statements to modify key table attributes:

alter table dsrTable set tblproperties('type'='xx');
alter table dsrTable set tblproperties('primaryKey'='xx');
alter table dsrTable set tblproperties('preCombineField'='xx');
alter table dsrTable set tblproperties('hoodie.index.type'='xx');

Engines like Hive and Presto can directly modify table properties, but such modifications can lead to duplicate data or even data corruption in the entire Hudi table; modifying these properties is prohibited.