-
Notifications
You must be signed in to change notification settings - Fork 76
Adhoc filters don't work on the panels with datasource variable #1114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am also experiencing this issue as well, along with above issue, additionally while trying to add first additional filter getting below error in console.
It would be great to have this addressed. Let me know if i can help with additional details or testing! Environment: |
Hey thanks for providing this info. Adhoc filters are known to be a bit unpredictable due to the AST parsing. @satyapriyanka Thank you for providing the console error, the AST was unable to identify which table to filter on. Do you have the SQL that caused this? @sukhada369 do you have the console message and SQL that caused this? I wonder if it's also an error in console. |
@SpencerTorres , there is no error. Panels show the data it is just that it doesn't add the filter on the fly. |
@SpencerTorres When i tried to add adhoc filters values i see this in console logs 2 GROUP BY ServiceName, time
|
@satyapriyanka do you have the SQL query itself? Which query is causing this? @sukhada369 If theres no error in the JS console then perhaps it's excluding it for other reasons. I'll see if I can reproduce this error |
@SpencerTorres , did the steps help to reproduce the issue? |
I have tried with latest version of the plugin i.e. 4.7.0 and the behavior is the same |
What happened:
We are using following versions:
Grafana: v11.4.0
Grafana clickhouse-datasource plugin: v4.5.1
ClickHouse client version: 24.11.1.2557
Adhoc filters don't work on the panels with datasource variable. It works as expected when datasource is explicitly selected in the panel dropdown. In Query inspector we see that additional "additional_table_filters" setting is not getting appended in case of datasource variable is selected.
What you expected to happen:
additional_table_filters should append with datasource variable
How to reproduce it (as minimally and precisely as possible):
How to further debug with Query Inspector:
Screenshots
With datasource explicitly selected:
With Datasource variable:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: