chproxy
chproxy copied to clipboard
pass format_schema query param setting to clickhouse
We are setting format_schema
as a query parameter in our POST request, however when chproxy proxies the request, this parameter is not included and Clickhouse errors with DB::Exception: The format Protobuf requires a schema. The 'format_schema' setting should be set (version 19.14.6.12 (official build))
This would be resolved if chproxy forwarded this query parameter to the server.
Hi @kcking ! Pls see similar issue https://github.com/Vertamedia/chproxy/issues/62
#62 helped solve a similar problem I had. thanks @hagen1778
a snippet of something like an example config for future visitors:
...
users:
- name: "mux"
password: "asdf1234"
to_cluster: "clickhouse"
to_user: "default"
params: "protoplz"
param_groups:
- name: "protoplz"
params:
- key: "format_schema"
value: "the_proto_file:MessageName"
...
We should include this real use case example in documentation.