Open sambrilleman opened 3 years ago
CROSS JOIN LATERAL
and right now it gets formatted as ...
CROSS JOIN LATERAL ( WITH bar AS (
SELECT
a,
b,
FROM foo_func(baz)),
barf AS (
SELECT ...
)
SELECT ...
...
i.e. not only is the WITH
hanging there on the right, but also the closing parenthesis of the 2nd CTE placed in column 1, even though contained within other parentheses and thoroughly indented otherwise...
I would also like to see this improved! The current version of the package makes my WITH
statements unreadable
I'd also like to see WITH
formatting added
Is your feature request related to a problem? Please describe
Thanks for this package! Is it possible to have the start of a CTE definition on a new line?
The current behaviour is that a CTE is a continuation of the same line, as in the following example:
which leads to the following output:
Describe the solution you'd like
The desired output would be:
That is:
WITH
would be capitalised on its own lineSELECT
statement inside the definition of theCTE
would start on a new line, idented to represent a block nested within the parentheses()
Describe alternatives you've considered