-
Notifications
You must be signed in to change notification settings - Fork 603
Parser is dropping Inner Joins when constructing the SQL from AST #938
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
Comments
Same is happening with |
hey @alamb is this resolved? |
I am not sure -- perhaps you can contribute a PR with a test case demonstrating if it is fixed or not |
I checked one more time and seems its failing... if you can give me some hints i would like to work on this PR |
Perhaps you could write a test in https://github.com/sqlparser-rs/sqlparser-rs/blob/main/tests/sqlparser_common.rs that uses Here is an example Or perhaps you can just put the example in this PR into test form |
Hi @alamb sure i will work on this, please assign me to the task :) |
Problem
A SQL statement with an Inner Join is given to the parser, once converted to AST and getting the result back as a SQL string parser loose the inner join altering original SQL statement.
I know
INNER JOIN
is represented asJOIN
in many dialects. But since parser alters original query when converted back to AST is a problem as it is loosing information.Example:
Output:
The text was updated successfully, but these errors were encountered: