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
When formatting valid Trino SQL that has an ascii arrow "->", the formatter will insert a space, making the SQL invalid. Source:
SELECT array_sort(ARRAY[3, 2, 5, 1, 2], (x, y) -> IF(x < y, 1, IF(x = y, 0, -1)));
Formatted with Trino dialect:
SELECT array_sort(ARRAY[3, 2, 5, 1, 2], (X, Y) - > IF (x < y, 1, IF (x = y, 0, - 1)));
Notice that the arrow now has a space between the '-' and '>' characters.
Arrows in Trino SQL should not be modified.
No response
The text was updated successfully, but these errors were encountered:
The Athena dialect handles the "->" correctly. Since "Athena" is just an AWS version of Trino, is there really a need for both dialects?
Sorry, something went wrong.
Hey,
I just fixed the formatting for this. It still doesn't parse the query correctly, but it does format it now correctly. Just pushing a new build.
Great. Thanks!
No branches or pull requests
What happened?
When formatting valid Trino SQL that has an ascii arrow "->", the formatter will insert a space, making the SQL invalid.
Source:
Formatted with Trino dialect:
Notice that the arrow now has a space between the '-' and '>' characters.
Arrows in Trino SQL should not be modified.
Version
No response
Checked in Playground
The text was updated successfully, but these errors were encountered: