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 searched the issues and found no similar issues.
What Happened
There's a typo in dialect_snowflake.py in line 1935. Sequence("APPLY", "RAW", "ACCESS", "POLICY") instead of Sequence("APPLY", "ROW", "ACCESS", "POLICY")
Expected Behaviour
SQL statements should be parsed without errors
Observed Behaviour
raise RuntimeError(
RuntimeError: Grammar refers to 'RawKeywordSegment' which was not found in the snowflake dialect. Perhaps specify the keyword? https://github.com/sqlfluff/sqlfluff/wiki/Contributing-Dialect-Changes#keywords
How to reproduce
Write a file.sql:
CREATE ROLE IF NOT EXISTS NEW_ROLE;
GRANT APPLY MASKING POLICY
ON ACCOUNT TO ROLE NEW_ROLE;
GRANT CREATE MASKING POLICY
ON SCHEMA MY_DB.MY_SCHEMA TO ROLE NEW_ROLE;
Run command:
sqlfluff lint file.sql --dialect snowflake
Dialect
snowflake
Version
sqlfluff 1.3.0
Python 3.9.12
Configuration
default
Are you willing to work on and submit a PR to address the issue?
Search before asking
What Happened
There's a typo in dialect_snowflake.py in line 1935. Sequence("APPLY", "RAW", "ACCESS", "POLICY") instead of Sequence("APPLY", "ROW", "ACCESS", "POLICY")
Expected Behaviour
SQL statements should be parsed without errors
Observed Behaviour
How to reproduce
sqlfluff lint file.sql --dialect snowflake
Dialect
snowflake
Version
sqlfluff 1.3.0
Python 3.9.12
Configuration
default
Are you willing to work on and submit a PR to address the issue?
Code of Conduct
The text was updated successfully, but these errors were encountered: