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
The following code will throw sqlglot.errors.ParseError: Expecting ), even though it is a valid CREATE statement.
importsqlglotsql="""CREATE TABLE IF NOT EXISTS db.table ( a TIMESTAMP, b BOOLEAN GENERATED ALWAYS AS (a IS NOT NULL))USING DELTA"""sqlglot.parse_one(sql, read="databricks")
Tested with latest version (23.12.2) and with main.
The following code will throw
sqlglot.errors.ParseError: Expecting )
, even though it is a valid CREATE statement.Tested with latest version (
23.12.2
) and withmain
.GENERATED ALWAYS AS
documentation: https://docs.databricks.com/en/sql/language-manual/sql-ref-syntax-ddl-create-table-using.htmlThe text was updated successfully, but these errors were encountered: