prashantwason commented on issue #2331:
URL: https://github.com/apache/hudi/issues/2331#issuecomment-748354002


   Yes, adding new columns (fields in schema) is supported as long as they have 
default values specified. This is because the new fields will not be present in 
older records and hence cannot be populated directly on reading records from 
existing data.
   
   The following field type changes are allowed:
   old_type ->.  new_type
   int                  long
   int                  float
   int                  double
   long               double
   float               double
   bytes             string
   string             bytes
   
   Code references:
   https://github.com/apache/hudi/pull/2350/files
   
https://github.com/rdblue/avro-java/blob/master/avro/src/main/java/org/apache/avro/SchemaCompatibility.java#L359
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to