Closed datarttu closed 1 month ago
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.
Thanks for reporting. Yes, that would have been the fix to make.
Released the fix in sql-formatter 15.4.5 and vscode plugin 4.1.3.
Works like a charm. Thank you so much! 🎉
->
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.3