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
Comment gets dropped when trailing the SELECT statement on a new line
>>>importsqlglot>>>sqlglot.__version__'13.0.0'>>>query="""... -- test beginning... SELECT... a, /* test wrap comment */... b as c -- test same line... -- test middle... FROM foo.bar --testnospace... -- test end... """>>>print(sqlglot.parse_one(query).sql(pretty=True))
/*testbeginning*/SELECTa, /*testwrapcomment*/bASc/*testsameline*/FROMfoo.bar/*testnospace*//*testend*/
Comment gets dropped when trailing the SELECT statement on a new line
Official Documentation
https://github.com/tobymao/sqlglot#formatting-and-transpiling says comments will be preserved
The text was updated successfully, but these errors were encountered: