Closed aersam closed 1 month ago
Describe the bug If I use union all by name sqlfmt formats this as union all\nby name which is a bit annoying
union all by name
union all\nby name
To Reproduce
import sqlfmt.api print(sqlfmt.api.format_string("select * from foo union all by name select * from bar", mode=sqlfmt.api.Mode()))
Expected behavior Should output:
select * from foo union all by name select * from bar
Actual behavior
Additional context What is the output of sqlfmt --version? 0.21.4
sqlfmt --version
0.21.4
TIL about union all by name. Thank you
just shipped a patch in 0.22.0 -- thanks for the report!
Describe the bug If I use
union all by name
sqlfmt formats this asunion all\nby name
which is a bit annoyingTo Reproduce
Expected behavior Should output:
Actual behavior
Additional context What is the output of
sqlfmt --version
?0.21.4