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
When using library version 2.0.14, the property "product" (array of map) was generating a value which was a []interface[} (for the array) and each tuple was in fact decoded as []interface{} where each item in the array represented one column of the tuple
While upgrading to version 2.3.0, the same property is exposed as a []interface{} (for the array part) and each tuple is in value decoded as a map[string]interface{}
This is a good progress for decoding such structure but in my case the values stored in the JSON are nullable and when creating the map[string]interace{}, the code in tuple.go line 290
Have a test for this @stephane-moreau thankyou. I'll verify and merge your PR shortly. Thanks for taking the time to diagnose and more importantly fix.
Issue description
In a table storing events from a navigation, I have a Nullable(Stirng) column, that I parse using the following SQL
When using library version 2.0.14, the property "product" (array of map) was generating a value which was a []interface[} (for the array) and each tuple was in fact decoded as []interface{} where each item in the array represented one column of the tuple
While upgrading to version 2.3.0, the same property is exposed as a []interface{} (for the array part) and each tuple is in value decoded as a map[string]interface{}
This is a good progress for decoding such structure but in my case the values stored in the JSON are nullable and when creating the map[string]interace{}, the code in tuple.go line 290
do generate a panic because c.Row(0, false) is nil
Configuration
Seen on both MacOS and Windows 11 using
Interface:
database/sql
Driver version:
v2.3.0
Go version: go version
go1.19.2 windows/amd64
ClickHouse Server version:
21.11
The text was updated successfully, but these errors were encountered: