Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jhump committed Feb 13, 2025
1 parent 1ff0d58 commit 7a0c8fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions format/parquet.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ type BsonType struct{}

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

// Embedded Variant logical type annotation
type VariantType struct{}

func (*VariantType) String() string { return "VARIANT" }

// LogicalType annotations to replace ConvertedType.
//
// To maintain compatibility, implementations using LogicalType for a
Expand Down Expand Up @@ -288,6 +293,7 @@ type LogicalType struct { // union
Bson *BsonType `thrift:"13"` // use ConvertedType BSON
UUID *UUIDType `thrift:"14"` // no compatible ConvertedType
Float16 *Float16Type `thrift:"15"` // no compatible ConvertedType
Variant *VariantType `thrift:"16"` // no compatible ConvertedType
}

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

0 comments on commit 7a0c8fd

Please sign in to comment.