I'm using variables in Grafana queries with ClickHouse, but the variable ${var_name:raw} isn't recognized in the results. The query runs without errors, but no data shows up in the graph.
Here’s the query:
SELECT
predictiondate,
'${var_name:raw}' as "ANN01: 48H"
FROM
aidb.${plant_name:raw}_table;
The parameter is passed as WT01 (uppercase).
The column name in the table is lowercase (wt01), and even when using LOWER('${var_name:raw}'), I still don't get any results in the graph.
Replacing the variable with the hardcoded value wt01 works fine.
Any suggestions on why the variable isn't working in the query results?
'${var_name:raw}'? try to use doble quotes"${var_name:raw}"