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

Spark Table Data Maintenance Specifications

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

Error 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');

Other engines aside from Spark can also modify Hudi table metadata, but such modifications can lead to data duplication or even data corruption in the entire Hudi table; therefore, modification of the above attributes is prohibited.