[HUDI-298] Fix issue with incorrect column mapping casusing bad data, during on-the-fly merge of Real Time tables (#956)
* Fix issue with incorrect column mapping casusing bad data, during on-the-fly merge of Real Time tables
This commit is contained in:
committed by
Balaji Varadarajan
parent
c052167c06
commit
12523c379f
@@ -130,6 +130,10 @@ public class HoodieAvroUtils {
|
||||
return mergedSchema;
|
||||
}
|
||||
|
||||
public static String addMetadataColumnTypes(String hiveColumnTypes) {
|
||||
return "string,string,string,string,string," + hiveColumnTypes;
|
||||
}
|
||||
|
||||
private static Schema initRecordKeySchema() {
|
||||
Schema.Field recordKeyField =
|
||||
new Schema.Field(HoodieRecord.RECORD_KEY_METADATA_FIELD, METADATA_FIELD_SCHEMA, "", NullNode.getInstance());
|
||||
|
||||
Reference in New Issue
Block a user