We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
-> operator in Snowflake SQL dialect is currently formatted into - >. See Snowflake Lambda expressions for background.
->
- >
Input data
Which SQL and options did you provide as input?
SELECT FILTER(some_array_of_objects_with_int_value, a -> a:value >= 50) AS "Filter >= 50";
Expected Output
SELECT FILTER ( some_array_of_objects_with_int_value, a -> a:value >= 50 ) AS "Filter >= 50";
Actual Output
SELECT FILTER ( some_array_of_objects_with_int_value, a - > a:value >= 50 ) AS "Filter >= 50";
Usage
sql-formatter
The text was updated successfully, but these errors were encountered:
Could this be fixed with an addition to supported operators and related test(s)?
// https://docs.snowflake.com/en/user-guide/querying-semistructured#lambda-expressions '->'
Unfortunately I don't currently have Node / ts environment set up to test my suggestion locally, but I'm happy to help in any way I can.
Sorry, something went wrong.
Thanks for reporting. Yes, that would have been the fix to make.
5d377ac
Released the fix in sql-formatter 15.4.5 and vscode plugin 4.1.3.
Works like a charm. Thank you so much! 🎉
No branches or pull requests
->
operator in Snowflake SQL dialect is currently formatted into- >
. See Snowflake Lambda expressions for background.Input data
Which SQL and options did you provide as input?
Expected Output
Actual Output
Usage
sql-formatter
v15.4.3The text was updated successfully, but these errors were encountered: