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 at parsing BigQuery SQL query containing cast with date format.
Example :
Fully reproducible code snippet
query="""with clean as ( select _row , cast(start_date as date format 'MM/DD/YYYY') as start_date , cast(end_date as date format 'MM/DD/YYYY') as end_date from `my_project`.`my_schema`.`my_table`)select *from clean"""fromsqlglotimportparse_oneparse_one(query, read="bigquery")
sqlglot
fails at parsing BigQuery SQL query containing cast with date format.Example :
Fully reproducible code snippet
-> Generates the error :
Expected output :
The text was updated successfully, but these errors were encountered: