From 30b5aef62e216b62c47dec063388bbac58b0d0e3 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 24 Apr 2024 23:32:35 -0700 Subject: [PATCH] record type is also optional --- weed/mq/schema/to_parquet_schema.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/mq/schema/to_parquet_schema.go b/weed/mq/schema/to_parquet_schema.go index ce30e3917..68ba3734a 100644 --- a/weed/mq/schema/to_parquet_schema.go +++ b/weed/mq/schema/to_parquet_schema.go @@ -24,6 +24,7 @@ func toParquetFieldType(fieldType *schema_pb.Type) (dataType parquet.Node, err e dataType = parquet.Optional(dataType) case *schema_pb.Type_RecordType: dataType, err = toParquetFieldTypeRecord(fieldType.GetRecordType()) + dataType = parquet.Optional(dataType) case *schema_pb.Type_ListType: dataType, err = toParquetFieldTypeList(fieldType.GetListType()) default: