New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing "warehouse" and "schedule" in "create task" fails #1597
Comments
This is a fairly standard dialect enhancement if you (or anyone else!) is looking to become a first time contributor! This syntax is currently processed in the generic sqlfluff/src/sqlfluff/dialects/dialect_snowflake.py Lines 1358 to 1369 in 56c8a02
Probably worth adding a dedicated We're hoping to release a v0.7.0 later this week, or perhaps next, so would be good to get this in for that. |
Nice. I'll try to make a PR later today. |
Great news! Feel free to reach out with any questions or if I can help at all. |
The
CREATE TASK
statement in the snowflake dialect may have additional keywords, that are not supported in sqlfluff (see https://docs.snowflake.com/en/sql-reference/sql/create-task.html#syntax). Especially theWAREHOUSE
andSCHEDULE
is not supported.Minimal example (as given on the official documentation):
Output of
sqlfluff parse --dialect snowflake test.sql
Seems like there is already support for the keywords in the
ALTER TASK
statement. I will try and make a PR myself.Expected Behaviour
Successful parsing and linting of the example
Observed Behaviour
WAREHOUSE
andSCHEDULE
are not parsableSteps to Reproduce
Dialect
snowflake
Version
sqlfluff, version 0.6.9
Python 3.9.7
Configuration
Default Configuration
The text was updated successfully, but these errors were encountered: