Skip to content

SQL: combining = and LIKE does return 0 results on timeseries typeΒ #4128

Closed

Description

@nebulon42

Release: 26.4.2

I'm having a timeseries type that has a tag "tags" (not the best design, I know, I'm converting from QuestDB). This "tags" column is CSV. I'm filtering for the "CI" tag. There is no value that is "CI", but there are others like "CI,slow" or "1m,CI,fast" and so on.

Something like

...
WHERE
...
AND (
        "tags" = 'CI'
        OR "tags" LIKE 'CI,%'
        OR "tags" LIKE '%,CI'
        OR "tags" LIKE '%,CI,%'
      )

returns 0 rows

while

...
WHERE
...
AND (
        "tags" LIKE 'CI'
        OR "tags" LIKE 'CI,%'
        OR "tags" LIKE '%,CI'
        OR "tags" LIKE '%,CI,%'
      )

works correctly. It seems that mixing LIKE and = does not work as expected.

Activity

  1. self-assigned this
    on May 7, 2026
  2. added this to the 26.5.1 milestone on May 7, 2026
  3. added theissue type on May 7, 2026
  4. lvca commented on May 7, 2026

    @lvca
    Member

    Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions