tconbeer / sqlfmt

sqlfmt formats your dbt SQL files so you don't have to
https://sqlfmt.com
Apache License 2.0
373 stars 15 forks source link

CREATE VIEW #515

Open jlkravitz opened 9 months ago

jlkravitz commented 9 months ago

Describe the bug When I prepend create view MyView as to a query, sqlfmt no longer formats the file.

To Reproduce

CREATE VIEW myview AS SELECT * FROM mytable

Expected behavior

create view myview as select * from mytable

Actual behavior

CREATE VIEW myview AS SELECT * FROM mytable

Additional context What is the output of sqlfmt --version?

sqlfmt, version 0.19.2
tconbeer commented 9 months ago

This is expected behavior right now; see #262

jlkravitz commented 9 months ago

Got it. Thanks!