Closed damirbk closed 11 months ago
Thanks for the report!
Does the formatted code execute on clickhouse or does it complain about the space?
Similar to #478
Thanks for all the work you do! It actually works fine in ClickHouse with the spaces; it's just the formatting that becomes strange.
Cool, thanks, snowflake is the same way.
Any() and all() are also in postgres now so we'll just make this fix to the polyglot dialect
Describe the bug sqlfmt doesn't seem to understand that the
any
function is an aggregate function and not the typical SQL ANY operator. See examples below.To Reproduce File
example1.sql
:Also, file
example2.sql
:Expected behavior For
example1.sql
:(no change)
For
example2.sql
:Actual behavior After running
sqlfmt example1.sql --dialect clickhouse --line-length 88
:Extra whitespace is added incorrectly.
After running
sqlfmt example2.sql --dialect clickhouse --line-length 88
:Additional context What is the output of
sqlfmt --version
?sqlfmt, version 0.19.2