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
What happened:
We added ad hoc filter to one of our dashboards and wanted to filter data on dashboards by clicking filter on the table cell of one of the tables in that dashboards.
For example I wanted to filter data by column level with value ERROR
What you expected to happen:
Clicking on the Filter for value on the table cell where level is ERROR and now expecting that settings additional_table_filters={'app_logs' : ' level = \'ERROR\' '} will be added to all queries on this dashboard with this datasource.
How to reproduce it (as minimally and precisely as possible):
Create a table app logs with some columns and column level type String in clickhouse and timestamp type DateTime64 with some test data within
Add this clickhouse as a datasource to grafana
Create a dashboard and dd a adhoc filter on this datasource
Create a table visualisation and put some default query into it
the issue wasn't fixed:
it seems that the AST parser is not aware of grafana template variables - this causes it to fail
in the above example the failure is not due to the comment but due to the template variables. When comment is removed the parser fails on the next template variable.
when query parsing fails the additional_table_filters setting is not added to the query
What happened:
We added ad hoc filter to one of our dashboards and wanted to filter data on dashboards by clicking
filter
on the table cell of one of the tables in that dashboards.For example I wanted to filter data by column
level
with valueERROR
What you expected to happen:
Clicking on the
Filter for value
on the table cell where level isERROR
and now expecting thatsettings additional_table_filters={'app_logs' : ' level = \'ERROR\' '}
will be added to all queries on this dashboard with this datasource.How to reproduce it (as minimally and precisely as possible):
level
type String in clickhouse andtimestamp
type DateTime64 with some test data withinStandard options -> Ad-hoc filterable
in grafana table settingsFilter for value
with some value,ERROR
for example in the tablequery inspector
:The right query should be
or
settings additional_table_filters={'app_logs' : ' level = \'ERROR\' '}
I can suggest that plugin incorrectly gets the table name from the query.
Environment:
The text was updated successfully, but these errors were encountered: