Skip to content

fix(clickhouse): Parse LIKE functions#6314

Merged
VaggelisD merged 2 commits intomainfrom
vaggelisd/ch_like_function
Nov 12, 2025
Merged

fix(clickhouse): Parse LIKE functions#6314
VaggelisD merged 2 commits intomainfrom
vaggelisd/ch_like_function

Conversation

@VaggelisD
Copy link
Collaborator

@VaggelisD VaggelisD commented Nov 12, 2025

Fixes #6313

Before this PR:

>>> import sqlglot
>>> sqlglot.parse_one("SELECT LIKE(a, b)", "clickhouse").sql("clickhouse")
'SELECT b LIKE a'

After this PR:

>>> import sqlglot
>>> sqlglot.parse_one("SELECT LIKE(a, b)", "clickhouse").sql("clickhouse")
'SELECT a LIKE b'

Docs

Clickhouse LIKE functions

@VaggelisD VaggelisD merged commit ea0ea79 into main Nov 12, 2025
7 checks passed
@VaggelisD VaggelisD deleted the vaggelisd/ch_like_function branch November 12, 2025 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parse_one(sql).sql("clickhouse") trans LIKE to wrong grammar

2 participants