databrickslabs / lsql

Lightweight SQL execution wrapper only on top of Databricks SDK
https://pypi.org/project/databricks-labs-lsql/
Other
8 stars 3 forks source link

[BUG] `databricks labs lsql fmt` strips the trailing end-of-line (EOL) from files it formats #245

Closed asnare closed 1 week ago

asnare commented 1 month ago

Currently the databricks labs lsql fmt command strips the trailing end-of-line marker from the end of the files that it formats. This is problematic: text files should normally have the EOL marker on the last line in the file. As such the formatter should ensure that reformatted files have the EOL marker at the end of the file.