From 138a027a2e0056f474f8cf59c79f7fa203077006 Mon Sep 17 00:00:00 2001 From: chrislu Date: Wed, 24 Apr 2024 23:33:11 -0700 Subject: [PATCH] add field types but without value --- weed/mq/schema/write_parquet_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/weed/mq/schema/write_parquet_test.go b/weed/mq/schema/write_parquet_test.go index 2b1fabdfd..d3ec547ab 100644 --- a/weed/mq/schema/write_parquet_test.go +++ b/weed/mq/schema/write_parquet_test.go @@ -18,7 +18,10 @@ func TestWriteParquet(t *testing.T) { AddRecordField("Person", NewRecordTypeBuilder(). AddStringField("zName"). AddListField("emails", TypeString)). - AddStringField("Company").Build() + AddStringField("Company"). + AddRecordField("zAddress", NewRecordTypeBuilder(). + AddStringField("Street"). + AddStringField("City")).Build() fmt.Printf("RecordType: %v\n", recordType) // create a parquet schema