clickhouse-driver
clickhouse-driver copied to clipboard
clickhouse_driver.errors.UnknownTypeError: Code: 50. Unknown type Object('json')
driver doesn't support new JSON
type added in 22.3 (I'm using 22.3.3.44 )
Looks like I should be able to add something like this, but unclear which create_
is best to start as a base
elif spec.startswith('Object'):
print('Object.....', spec)
return create_tuple_column(spec, column_options)
Hi.
You've figured out an "entrypoint" for new columns. Usually new column is the combination of an existing columns. But this is not always true. Some columns are tough nuts to crack.
If you're not scared of C++/reversing you should inspect ClickHouse server sources or use wireshark
/ tcpdump
to see what's going on "the wire".
A brief how to is placed here: https://github.com/mymarilyn/clickhouse-driver/blob/master/clickhouse_driver/columns/base.py#L139
+1 for this feature request.
Now there is official docs https://clickhouse.com/docs/en/native-protocol
@konnectr do you see JSON listed there yet? I was unable to locate documentation for JSON as of right now.
(not really sure if I would be able to implement it even if it was documented, but I am curious to try)
+1 for this - does anyone have a workaround?
+1 for this
Has anyone used any workarounds for this?
I used clickhouse-connect library instead and it worked fine @rejochandran
Version 0.2.6 has json support