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

Support with arrayJoin .. as .. expression (ClickHouse) #4544

Closed
xtess16 opened this issue Dec 23, 2024 · 0 comments · Fixed by #4546
Closed

Support with arrayJoin .. as .. expression (ClickHouse) #4544

xtess16 opened this issue Dec 23, 2024 · 0 comments · Fixed by #4546

Comments

@xtess16
Copy link

xtess16 commented Dec 23, 2024

Code snippet

from sqlglot import dialects, parse_one

sql = """
with arrayJoin([(1, [2, 3])]) as arr
select arr
"""

parse_one(sql=sql, dialect=dialects.ClickHouse)

Python 3.11
sqlglot 26.0.1

Expected: successful parsing
Actual:

ParseError: Required keyword: 'this' missing for <class 'sqlglot.expressions.Alias'>. Line 3, Col: 6.
  
with arrayJoin([(1, [2,3])]) as arr
select arr

Official Documentation
WITH
arrayJoin

Check the correctness of the expression
Tap

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 a pull request may close this issue.

1 participant