Open aersam opened 1 month ago
Describe the bug
An Databricks Variant expression such as select e.col:['attr_ID']::string as id gets an extra space: select e.col: ['attr_ID']::string as id
select e.col:['attr_ID']::string as id
select e.col: ['attr_ID']::string as id
To Reproduce
import sqlfmt.api as sqlfmt sql = """ select e.col:['attr_ID']::string as id from expl e""" print(sqlfmt.format_string(sql, sqlfmt.Mode()))
Expected behavior Should not add that space :)
Actual behavior Provide any output generated by sqlfmt here. If this is a formatting issue, include the code generated by sqlfmt.
Additional context What is the output of sqlfmt --version? sqlfmt, version 0.23.2
sqlfmt --version
sqlfmt, version 0.23.2
Thanks for the report!
Describe the bug
An Databricks Variant expression such as
select e.col:['attr_ID']::string as id
gets an extra space:select e.col: ['attr_ID']::string as id
To Reproduce
Expected behavior Should not add that space :)
Actual behavior Provide any output generated by sqlfmt here. If this is a formatting issue, include the code generated by sqlfmt.
Additional context What is the output of
sqlfmt --version
?sqlfmt, version 0.23.2