Browse Source

record type is also optional

mq-subscribe
chrislu 8 months ago
parent
commit
30b5aef62e
  1. 1
      weed/mq/schema/to_parquet_schema.go

1
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:

Loading…
Cancel
Save