Closed movy closed 6 months ago
Similar behavior with curl:
echo -ne '{"meta":[{"name":"title","type":"String"},{"name":"post_id","type":"String"},{"name":"forum_id","type":"String"},{"name":"source_site","type":"String"},{"name":"embedding","type":"Array(Float64)"}],"data":{"title":["post title"],"post_id":["12345"],"forum_id":["forum2"],"source_site":["site.com"],"embedding":[[1.1,2.2,3.3]]}}\n' | curl 'http://localhost:8123/?query=INSERT%20INTO%20titles_embeddings%20FORMAT%20JSONColumnsWithMetadata' --data-binary @-
Thanks for the report; I created https://github.com/ClickHouse/ClickHouse/issues/59853
(maybe it belongs to the upstream CH repo, please move the issue in such case)
As I understand,
JSONColumnsWithMetadata
is supported with object insert mode, yet I cannot make it work. Maybe i'm doing something wrong, but instead of returning an error, my insert query crashes clickhouse:Code example
Error log
Expected behaviour
A client-side error message at least.
Configuration
Environment
Client version: "@clickhouse/client": "^0.2.4",
Language version: v21.1.0
OS: Linux 6.2.0-37-generic №38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux