Skip to content

Commit 7a0c8fd

Browse files
committed
1 parent 1ff0d58 commit 7a0c8fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

format/parquet.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ type BsonType struct{}
260260

261261
func (t *BsonType) String() string { return "BSON" }
262262

263+
// Embedded Variant logical type annotation
264+
type VariantType struct{}
265+
266+
func (*VariantType) String() string { return "VARIANT" }
267+
263268
// LogicalType annotations to replace ConvertedType.
264269
//
265270
// To maintain compatibility, implementations using LogicalType for a
@@ -288,6 +293,7 @@ type LogicalType struct { // union
288293
Bson *BsonType `thrift:"13"` // use ConvertedType BSON
289294
UUID *UUIDType `thrift:"14"` // no compatible ConvertedType
290295
Float16 *Float16Type `thrift:"15"` // no compatible ConvertedType
296+
Variant *VariantType `thrift:"16"` // no compatible ConvertedType
291297
}
292298

293299
func (t *LogicalType) String() string {
@@ -912,6 +918,7 @@ type ColumnOrder struct { // union
912918
// ENUM - unsigned byte-wise comparison
913919
// LIST - undefined
914920
// MAP - undefined
921+
// VARIANT - undefined
915922
//
916923
// In the absence of logical types, the sort order is determined by the physical type:
917924
// BOOLEAN - false, true

0 commit comments

Comments
 (0)