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
When exists clause is used as a column inside select clause, it's put on the same line as the previous column, even when formatter decided to put each column on a separate line.
My thinking is that conceptually exists is a function, the only thing that's special about it is that it has a query as its argument.
To Reproduce
Here's an example (already formatted):
select
foo as bar, exists (select1from baz where qux = quux) as foo1,
case when something then this else also end as more
from bar1
Expected behavior
select
foo as bar,
exists (select1from baz where qux = quux) as foo1,
case when something then this else also end as more
from bar1
Additional context
sqlfmt, version 0.21.3
What is the output of pip list (or pipx list if you installed using pipx)?
Describe the bug
When
exists
clause is used as a column insideselect
clause, it's put on the same line as the previous column, even when formatter decided to put each column on a separate line.My thinking is that conceptually
exists
is a function, the only thing that's special about it is that it has a query as its argument.To Reproduce
Here's an example (already formatted):
Expected behavior
Additional context
sqlfmt, version 0.21.3
What is the output of
pip list
(orpipx list
if you installed using pipx)?The text was updated successfully, but these errors were encountered: