Skip to content
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

Ad hoc filter values ​​are incorrectly escaped when used with the IN operator #883

Closed
Kenterfie opened this issue Jun 28, 2024 · 2 comments
Labels
datasource/ClickHouse priority/low question Further information is requested type/bug Something isn't working

Comments

@Kenterfie
Copy link
Contributor

What happened:
We switched some weeks ago from the Altinity plugin for clickHouse to the official grafana clickhouse source plugin and we noticed that something was not working anymore as expected. We use extensively the in operator in our ad-hoc filters, which works fine with the previous plugin, but now the values are incorrectly escaped.

settings additional_table_filters={'table' : ' IPv4NumToStringClassC(ipv4Dst) IN \'('1.1.1.xxx','2.2.2.xxx')\' '}

What you expected to happen:
settings additional_table_filters={'table' : ' IPv4NumToStringClassC(ipv4Dst) IN (\'1.1.1.xxx\',\'2.2.2.xxx\')'}

Anything else we need to know?:

Environment:

  • Grafana version: v10.4.1
  • Plugin version: 4.1.0
@SpencerTorres
Copy link
Collaborator

Could you add some more detail about where the adhoc filter is getting its values? Also what the query looks like? Is it a SQL editor query, or query builder?

@adamyeats adamyeats moved this from Incoming to Waiting in Partner Datasources Jul 23, 2024
@aangelisc aangelisc added question Further information is requested priority/low labels Jul 26, 2024
@bossinc
Copy link
Collaborator

bossinc commented Aug 19, 2024

@Kenterfie I'm closing this issue. If it is still an issue, please reopen it with answers to Spencer's questions. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource/ClickHouse priority/low question Further information is requested type/bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

4 participants