I have a model containing a map[string]string field but got an error while trying to insert it. are specific struct tags needed or is it actually unsupported?
This field is supported by clickhouse since I successfully used it using the sql driver directly.
data-type/map
[error] unsupported data type: &map[]
2024-06-03 13:51:20 ERR Failed to **** logs error="unsupported data type: &map[]: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")"
2024-06-03 13:51:20 ERR Error storing record(s) error="unsupported data type: &map[]: Table not set, please set it like: db.Model(&user) or db.Table(\"users\")"
2024-06-03 13:51:20 DBG Closing partition consumer partition=0 topic=sessioncounter
panic: unsupported data type: &map[]: Table not set, please set it like: db.Model(&user) or db.Table("users")
Describe the feature
Support maps fields
Motivation
I have a model containing a
map[string]string
field but got an error while trying to insert it. are specific struct tags needed or is it actually unsupported?This field is supported by clickhouse since I successfully used it using the sql driver directly. data-type/map
Related Issues
none.