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
When a named FILE_FORMAT is provided in the COPY INTO ... query, it seems as if the Parser is hanging infinitely, without raising any error.
Example:
fromsqlglotimportparse_onequery=""" COPY INTO MY_DATABASE.MY_SCHEMA.MY_TABLE FROM @MY_DATABASE.MY_SCHEMA.MY_STAGE/my_path FILE_FORMAT=(FORMAT_NAME = MY_DATABASE.MY_SCHEMA.MY_FILE_FORMAT)"""# will remain on this lineparsed=parse_one(query, dialect='snowflake')
If commenting out the file format, the parse result is as expected.
Related to:
#3434 & #3604
When a named
FILE_FORMAT
is provided in theCOPY INTO ...
query, it seems as if the Parser is hanging infinitely, without raising any error.Example:
If commenting out the file format, the parse result is as expected.
Docs: https://docs.snowflake.com/en/sql-reference/sql/copy-into-table
The text was updated successfully, but these errors were encountered: