PabloRMira / sql_formatter

A Python based SQL formatter
https://pablormira.github.io/sql_formatter/
Apache License 2.0
43 stars 10 forks source link

Semicolon under line with comment not properly formatted #136

Closed PabloRMira closed 3 years ago

PabloRMira commented 3 years ago

Describe the bug

Something like

create or replace table my_table as
select asdf, qwer
from table1 /* some comment */
;

gets formatted as

CREATE OR REPLACE TABLE my_table AS
SELECT asdf,
       qwer
FROM   table1 /* some comment */;

but I expect the semicolon to be place before the comment in this case