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 don't want to pile on, but thought that an issue to track the simplest-possible version of the problem might help.
When I format this query (using the online formatter with default settings):
WITH foo AS (
SELECT1WHERE (1=1)
UNION ALLSELECT1
)
SELECT1;
I get:
WITH foo AS (
SELECT1WHERE (1=1)
UNION ALLSELECT1
)
SELECT1;
Which demonstrates the indentation issue starting with "UNION ALL".
If the parenthesis in the WHERE clause are removed, the indentation issue does not present. (Note how the clause is moved down and indented while it was on the same line as the WHERE in the previous output.)
WITH foo AS (
SELECT1WHERE1=1UNION ALLSELECT1
)
SELECT1;
Looking back at the other issues, the presence of parenthesis may be significant in those as well.
The text was updated successfully, but these errors were encountered:
I noticed several issues around CTEs and indentation. I.e.,
Count(*) AS
in return query statement #258HAVING
clause with subquery is used #195I don't want to pile on, but thought that an issue to track the simplest-possible version of the problem might help.
When I format this query (using the online formatter with default settings):
I get:
Which demonstrates the indentation issue starting with "UNION ALL".
If the parenthesis in the WHERE clause are removed, the indentation issue does not present. (Note how the clause is moved down and indented while it was on the same line as the WHERE in the previous output.)
Looking back at the other issues, the presence of parenthesis may be significant in those as well.
The text was updated successfully, but these errors were encountered: