Skip to content

Commit

Permalink
fix(clickhouse): use the correct dialect to generate subquery string …
Browse files Browse the repository at this point in the history
…for Contains operation
  • Loading branch information
cpcloud committed Jun 13, 2023
1 parent 03db73c commit f656bd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ibis/backends/clickhouse/compiler/values.py
Expand Up @@ -850,9 +850,9 @@ def tr(op, *, cache, **kw):
# annoying to detect so we let it through to enable the
# uncorrelated use case (pandas-style `.isin`)
subquery = translate(options.to_expr().as_table().op(), {})
right_arg = f"({subquery})"
right_arg = f"({_sql(subquery)})"
else:
right_arg = translate_val(options, cache=cache, **kw)
right_arg = _sql(translate_val(options, cache=cache, **kw))

# we explicitly do NOT parenthesize the right side because it doesn't
# make sense to do so for Sequence operations
Expand Down

0 comments on commit f656bd5

Please sign in to comment.