trickstercache / trickster

Open Source HTTP Reverse Proxy Cache and Time Series Dashboard Accelerator
https://trickstercache.org
Apache License 2.0
1.98k stars 177 forks source link

clickhouse multiline query parsing problem #696

Open umutbasal opened 8 months ago

umutbasal commented 8 months ago

https://github.com/trickstercache/trickster/blob/f31766c669b4dded2cafaccb6acc69a5afa67fb5/pkg/backends/clickhouse/handler_query.go#L55

In the current implementation of the ClickHouse backend, there appears to be an issue when sending multiline SELECT queries. The code doesn't pass these queries to the delta cache; instead, it simply proxies the request.

SELECT
  toStartOfHour(...