From 5db762f926a6cdf5f57e67b1e5afbe6d44e1a8bf Mon Sep 17 00:00:00 2001 From: Amogh-Bharadwaj Date: Thu, 21 Mar 2024 01:28:27 +0530 Subject: [PATCH] map interval to variant --- flow/model/qvalue/kind.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flow/model/qvalue/kind.go b/flow/model/qvalue/kind.go index 445dec6f8b..9ed9ac0beb 100644 --- a/flow/model/qvalue/kind.go +++ b/flow/model/qvalue/kind.go @@ -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", @@ -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)",