Skip to content
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

Join tables cannot be enclosed in parentheses #58

Open
tanzaku opened this issue Jul 3, 2024 · 0 comments
Open

Join tables cannot be enclosed in parentheses #58

tanzaku opened this issue Jul 3, 2024 · 0 comments

Comments

@tanzaku
Copy link
Collaborator

tanzaku commented Jul 3, 2024

Cannot format following SQL.

SELECT * FROM (my_table AS a CROSS JOIN my_table) AS b

The reason is that the grammar side (tree-sitter-sql) is not able to handle it.
For the same reason, the following SQL cannot be formatted.

select
    *
from (
    (select a from t1)
    union all
    (select b from b2)
) tbl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant