-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Space added when flattening columns on Snowflake #103
Comments
Thanks for the report, @noel! I wasn't familiar with that syntax in Snowflake, but it's documented here (and it's not unique to the dialect as a prefix to field names): https://docs.snowflake.com/en/user-guide/json-basics-tutorial-flatten.html It seems colons should only be surrounded by spaces when they are slice operators. We'll have to infer the context and then format appropriately |
I should have mentioned, as a workaround, you can use |
Fixed by #106 -- this will be included in the 0.5.0 release this week. |
0.5.0 has been released! Please upgrade for the patch |
Given a column with the following sql
sqlfmt will add additional spaces around
:
like soThe text was updated successfully, but these errors were encountered: