hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[SUPPORT] Question about Hudi Schema evolution - Column added in Middle

Open rvd8345 opened this issue 6 years ago • 1 comments

Hi Team,

I tried upserting into an Hudi dataset after inserting a new field into the dataframe in between. So the original dataframe had 5 columns that was written in commit 1. Then before commit 2, I added a new column after column 1 of the original dataframe.

I was expecting Hudi to error out as new column was inserted in middle, but it did not. It gracefully re-wrote the files with new schema and performed Hive sync also. Hudi 0.52 is used. Is this something that has been recently enhanced in Hudi or did I miss something?

thanks

rvd8345 avatar Nov 02 '20 16:11 rvd8345

@rvd8345 : With 0.6.0 version, to check for schema compatibility for every single write, you need to enable the config hoodie.avro.schema.validate=true.

bvaradar avatar Nov 03 '20 15:11 bvaradar