From b00d03fd62795f739076423994841bf8cc1151d4 Mon Sep 17 00:00:00 2001 From: Sivabalan Narayanan Date: Mon, 18 Apr 2022 10:37:03 -0400 Subject: [PATCH] [HUDI-3886] Adding default null for some of the fields in col stats in MDT schema (#5329) --- hudi-common/src/main/avro/HoodieMetadata.avsc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hudi-common/src/main/avro/HoodieMetadata.avsc b/hudi-common/src/main/avro/HoodieMetadata.avsc index a8d7ca72b..a47cbf378 100644 --- a/hudi-common/src/main/avro/HoodieMetadata.avsc +++ b/hudi-common/src/main/avro/HoodieMetadata.avsc @@ -107,7 +107,8 @@ "type": [ "null", "string" - ] + ], + "default" : null }, { "doc": "Column name for which this column statistics applies", @@ -318,7 +319,8 @@ "type": [ "null", "long" - ] + ], + "default": null }, { "doc": "Total count of null values", @@ -326,7 +328,8 @@ "type": [ "null", "long" - ] + ], + "default": null }, { "doc": "Total storage size on disk", @@ -334,7 +337,8 @@ "type": [ "null", "long" - ] + ], + "default": null }, { "doc": "Total uncompressed storage size on disk", @@ -342,7 +346,8 @@ "type": [ "null", "long" - ] + ], + "default": null }, { "doc": "Column range entry valid/deleted flag",