Template variable dependant of another template variable with "Include All option" on, causes Cannot read property 'replace' of null
See original GitHub issueGrafana v6.6.2 (3fa63cfc34) ClickHouse datasource for Grafana 4.6+ 1.9.5
I have several dependant templating variables:
This one works always.
This one for now has “Include All option” disabled, and it works always.
This one works only if $CITY has “Include All option” disabled.
If variables are set as described above everything works. Select for CMTS looks like this: select distinct cmts from pre_eq.pre_eq where bulkId in (‘2020-07-10 00:00:00’) and crmCity in (‘BJELOVAR’) FORMAT JSON
If I change $CITY variable in a way to enable “Include All option”, I am getting an error: “Template variable service failed Cannot read property ‘replace’ of null”
Looks like there is a problem with interpretation of the $CITY variable when “Include All option” is selected.
Database fields are of types:
,bulkId
DATETIME
,cmts
String
,crmCity
Nullable(String)
Is there any workaround?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12
Top GitHub Comments
@sundy-li quick workaround for you
SELECT ... WHERE os IN ( arrayMap((x)->toString(x),${client_version}) )
@ghuname ok, could you close this issue and create a new issue? what you mean “template variable engine is confused”? do you mean something wrong with grafana UI or clickhouse-grafana replace template variable with wrong values?