You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sqlglot fails to parse WITH <expression> AS <identifier>.
Before you file an issue
Make sure you specify the "read" dialect eg. parse_one(sql, read="spark") -- Yes, I have specified the "read" dialect.
Check if the issue still exists on main -- I have cloned and used the latest main branch. But the issue still exists.
Fully reproducible code snippet
importsqlglotfromsqlglot.dialects.clickhouseimportClickHousequery="WITH 1 AS var SELECT var"sqlglot.maybe_parse(query, dialect=ClickHouse(), error_level=sqlglot.ErrorLevel.RAISE)
Description
sqlglot
fails to parseWITH <expression> AS <identifier>
.Before you file an issue
parse_one(sql, read="spark")
-- Yes, I have specified the "read" dialect.Fully reproducible code snippet
Official Documentation
Link to WITH Clause syntax and its example available in the ClickHouse documentation website.
The text was updated successfully, but these errors were encountered: