record type is also optional

This commit is contained in:
chrislu 2024-04-24 23:32:35 -07:00
parent ce4597c623
commit 30b5aef62e

View File

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