From b2c47a24be53016d1c9220cb98d9fb7cd587e748 Mon Sep 17 00:00:00 2001 From: n3nash Date: Fri, 5 Feb 2021 16:03:34 -0800 Subject: [PATCH] [HUDI-1589] Fix Rollback Metadata AVRO backwards incompatiblity (#2543) --- hudi-common/src/main/avro/HoodieRollbackMetadata.avsc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hudi-common/src/main/avro/HoodieRollbackMetadata.avsc b/hudi-common/src/main/avro/HoodieRollbackMetadata.avsc index f1c9fd5b3..f342db873 100644 --- a/hudi-common/src/main/avro/HoodieRollbackMetadata.avsc +++ b/hudi-common/src/main/avro/HoodieRollbackMetadata.avsc @@ -31,22 +31,22 @@ {"name": "partitionPath", "type": "string"}, {"name": "successDeleteFiles", "type": {"type": "array", "items": "string"}}, {"name": "failedDeleteFiles", "type": {"type": "array", "items": "string"}}, - {"name": "rollbackLogFiles", "type": { + {"name": "rollbackLogFiles", "type": ["null", { "type": "map", "doc": "Files to which append blocks were written to capture rollback commit", "values": { "type": "long", "doc": "Size of this file in bytes" } - }}, - {"name": "writtenLogFiles", "type": { + }], "default":null }, + {"name": "writtenLogFiles", "type": ["null", { "type": "map", "doc": "Log files written that were expected to be rolledback", "values": { "type": "long", "doc": "Size of this file in bytes" } - }} + }], "default":null } ] }}}, {