You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the possibility for AST to understand queries using SETTINGS. Without SETTINGS, it is not possible to make a QUERY to use clickhouse query_cache.
What happened:
When run an SQL query that enables query_cache, the AST can't interpret the parameter SETTINGS.
Example of query:
SELECT count(*) FROM mytable SETTINGS use_query_cache=true, query_cache_ttl=300
Using the browser Inspector it is possible to see the following error:
Failed to parse SQL statement into an AST: Error: Syntax error at line 13 col 15:
) AS subquery SETTINGS
What you expected to happen:
Clickhouse server will receive the parameter SETTINGS and will place the query on system.query_cache and the subsequent query would have used the query_cache instead to perform a FULL query again.
How to reproduce it (as minimally and precisely as possible):
Just add any dash and create a simple SQL query adding at the end of your SQL statement SETTINGS use_query_cache=true, query_cache_ttl=300
Anything else we need to know?:
Environment:
Grafana version: 10.1.0
Plugin version: 3.2.0
OS Grafana is installed on: Debian 12
User OS & Browser: Debian 12 & Firefox
The text was updated successfully, but these errors were encountered:
Add the possibility for AST to understand queries using SETTINGS. Without SETTINGS, it is not possible to make a QUERY to use clickhouse query_cache.
What happened:
When run an SQL query that enables query_cache, the AST can't interpret the parameter SETTINGS.
Example of query:
Using the browser Inspector it is possible to see the following error:
What you expected to happen:
Clickhouse server will receive the parameter SETTINGS and will place the query on system.query_cache and the subsequent query would have used the query_cache instead to perform a FULL query again.
How to reproduce it (as minimally and precisely as possible):
Just add any dash and create a simple SQL query adding at the end of your SQL statement
SETTINGS use_query_cache=true, query_cache_ttl=300
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: