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
Apparently sqlfluff is not able to parse Athena functions.
I am using sqlfluff with athena dialect on with dbt models using sql and jinja
Expected Behaviour
Sqlfluff parse correctly the .sql file
Observed Behaviour
Sqlfluff returns
Found unparsable section:
when finds Athena functions like:
BOTH, ON, GROUP and FROM (when used with WITHIN, for example in LISTAGG)
How to reproduce
For example: running the sqlfluff lint on a file containing
, composition AS (
SELECT
composition.material_number material_number_composition
, LISTAGG(composition.composition, ' || ' ON OVERFLOW ERROR) WITHIN GROUP (ORDER BY composition ASC) composition
FROM
{{ ref('article_composition') }} composition
GROUP BY composition.material_number
`
Dialect
Athena
Version
sqlfluff = "~2.3.5"
Configuration
These are my sqlfluff configs specified in the pyproject.toml
###
Search before askingWhat Happened
Apparently sqlfluff is not able to parse Athena functions.
I am using sqlfluff with athena dialect on with dbt models using sql and jinja
Expected Behaviour
Sqlfluff parse correctly the .sql file
Observed Behaviour
Sqlfluff returns
Found unparsable section:
when finds Athena functions like:
BOTH, ON, GROUP and FROM (when used with WITHIN, for example in LISTAGG)
How to reproduce
For example: running the sqlfluff lint on a file containing
Dialect
Athena
Version
sqlfluff = "~2.3.5"
Configuration
These are my sqlfluff configs specified in the pyproject.toml
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: