Skip to content

Commit

Permalink
[querier] querier support tuple #20718
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaochaoren1 authored and SongZhen0704 committed Apr 7, 2023
1 parent c35b450 commit a994f07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/querier/engine/clickhouse/client/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const (
VALUE_TYPE_INT = "Int"
VALUE_TYPE_STRING = "String"
VALUE_TYPE_FLOAT64 = "Float64"
VALUE_TYPE_TUPLE = "Tuple"
)

var VALUE_TYPE_MAP = map[string]int{
Expand Down Expand Up @@ -112,6 +113,8 @@ func TransType(value interface{}, columnName, columnDatabaseTypeName string) (in
return *v, VALUE_TYPE_FLOAT64, nil
case *string:
return *v, VALUE_TYPE_STRING, nil
case *[]interface{}:
return *v, VALUE_TYPE_TUPLE, nil
default:
// unkown type field return origin type
return value, columnDatabaseTypeName, nil
Expand Down

0 comments on commit a994f07

Please sign in to comment.