hatarist / clickhouse-cli

A third-party client for the Clickhouse DBMS server.
Other
252 stars 43 forks source link

Feature Request: optionally use POST for select queries #23

Closed dqminh closed 5 years ago

dqminh commented 5 years ago

In some cases, we want to send huge queries over to Clickhouse, using GET method would return "414 request-uri too large". It would be great if the method can be configurable somehow (via CLI flag or the configuration file), so we can use POST for these queries.

hatarist commented 5 years ago

this irritates me, too; wanted to fix that, didn't have enough motivation. now i do. will try to fix that in a couple of days, thanks a lot!

hatarist commented 5 years ago

Pushed 0.2.5. Didn't make it an option though, just rewrote it to use POST all the time. Appreciate any feedback/contributions.

dqminh commented 5 years ago

I tested a few queries with this and this seems to be working. Thanks !