Skip to content

IN operator not correctly constructed in Query Builder Filter #830

@ryn9

Description

@ryn9

What happened:
When constructing a query using Query Builder, if using the 'IN' operator for a filter, the generated SQL is not correct

What you expected to happen:
the generated SQL for XXX IN (1,2,3) would be expected to be
XXX IN (1,2,3)
Instead it produces
XXX IN '(1,2,3)'

How to reproduce it (as minimally and precisely as possible):

  1. Go to Query Builder, Query Type: Time Series
  2. Create a Filter using the 'IN' operator
  3. View the generated SQL Preview

Anything else we need to know?:
n/a

Environment:

  • Grafana version:
  • Plugin version: grafana-clickhouse-datasource v4.0.7
  • OS Grafana is installed on:
  • User OS & Browser:
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions