You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql := "SELECT data as Data FROM map_test"
var result []struct {
Data map[string]uint64
}
if err := conn.Select(context.Background(), &result, sql); err != nil {
fmt.Println(err)
}
fmt.Println(result)
Map columns with enum keys are unsupported.
Queries that select map columns that use an enum key will fail and return an error:
Steps to reproduce
Expected behaviour
Cause
map.go
is always splitting the type into two substrings on the first comma: https://github.com/ClickHouse/clickhouse-go/blob/main/lib/column/map.go#L69In my examples case this string for t.params():
Enum16('hello' = 1, 'world' = 2), UInt64
will split into:Configuration
Environment
github.com/ClickHouse/clickhouse-go/v2 v2.20.0
ClickHouse server
24.2.1.2248
CREATE TABLE
statements for tables involved: See aboveThe text was updated successfully, but these errors were encountered: