8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
allow_implicit_indents
QUALIFY
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
For the following query, LT02 is triggered as expected: Expected line break and indent of 2 spaces before '1'. sqlfluff(LT02: layout.indent)
Expected line break and indent of 2 spaces before '1'. sqlfluff(LT02: layout.indent)
SELECT 123 WHERE 1 = 1 AND 2 = 2 QUALIFY 1 = 1 AND 2 = 2;
But when setting allow_implicit_indents = True, the issue disappears for the WHERE, but remains for the QUALIFY:
allow_implicit_indents = True
WHERE
No issue is detected.
An issue is detected.
See above (plus the minimal configurations below).
Snowflake (but should apply to any dialect).
==== sqlfluff ==== sqlfluff: 3.2.2 python: 3.10.7 implementation: cpython verbosity: 1 dialect: snowflake templater: jinja rules: all
[sqlfluff] templater = jinja dialect = snowflake [sqlfluff:indentation] tab_space_size = 2 allow_implicit_indents = True
I'm not sure where to start. I think this one might be beyond me.
The text was updated successfully, but these errors were encountered:
The same issue also happens with functions, like IFF():
IFF()
IFF(condition, column1, column2 )
Which must currently be updated to:
IFF( condition, column1, column2 )
Sorry, something went wrong.
The same issue also happens when using FROM TABLE(...) in Snowflake:
FROM TABLE(...)
Or:
Successfully merging a pull request may close this issue.
Search before asking
What Happened
For the following query, LT02 is triggered as expected:
Expected line break and indent of 2 spaces before '1'. sqlfluff(LT02: layout.indent)
But when setting
allow_implicit_indents = True
, the issue disappears for theWHERE
, but remains for theQUALIFY
:Expected Behaviour
No issue is detected.
Observed Behaviour
An issue is detected.
How to reproduce
See above (plus the minimal configurations below).
Dialect
Snowflake (but should apply to any dialect).
Version
Configuration
Are you willing to work on and submit a PR to address the issue?
I'm not sure where to start. I think this one might be beyond me.
Code of Conduct
The text was updated successfully, but these errors were encountered: