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
I am trying to parse table create statements used for Databricks, and they include generated columns. The example query from the Databricks documentation fails:
importsqlglotq="""CREATE TABLE default.people10m ( id INT, firstName STRING, middleName STRING, lastName STRING, gender STRING, birthDate TIMESTAMP, dateOfBirth DATE GENERATED ALWAYS AS (CAST(birthDate AS DATE)), ssn STRING, salary INT)"""sqlglot.parse_one(q, read="databricks")
sqlglot.errors.ParseError: Expecting ) on the AS of GENERATED ALWAYS AS
The text was updated successfully, but these errors were encountered:
I am trying to parse table create statements used for Databricks, and they include generated columns. The example query from the Databricks documentation fails:
sqlglot.errors.ParseError: Expecting )
on theAS
ofGENERATED ALWAYS AS
The text was updated successfully, but these errors were encountered: