Skip to content

Commit

Permalink
map interval to variant
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Mar 20, 2024
1 parent c88ce1c commit 5db762f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/model/qvalue/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ var QValueKindToSnowflakeTypeMap = map[QValueKind]string{
QValueKindJSON: "VARIANT",
QValueKindTimestamp: "TIMESTAMP_NTZ",
QValueKindTimestampTZ: "TIMESTAMP_TZ",
QValueKindInterval: "VARIANT",
QValueKindTime: "TIME",
QValueKindTimeTZ: "TIME",
QValueKindDate: "DATE",
Expand Down Expand Up @@ -118,6 +119,7 @@ var QValueKindToClickhouseTypeMap = map[QValueKind]string{
QValueKindTimeTZ: "String",
QValueKindInvalid: "String",
QValueKindHStore: "String",

// array types will be mapped to VARIANT
QValueKindArrayFloat32: "Array(Float32)",
QValueKindArrayFloat64: "Array(Float64)",
Expand Down

0 comments on commit 5db762f

Please sign in to comment.