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

support handling join table between parentheses #971

Merged
merged 3 commits into from
Apr 22, 2022
Merged

Conversation

jennifersp
Copy link
Contributor

Allow handling join tables in parentheses. It causes the JoinTableExpr to be wrapped in ParenTableExpr in the parser, so it needs to be unwrapped to get the JoinTableExpr inside
Fixes dolthub/dolt#3254

@jennifersp jennifersp changed the title allow join between parentheses support handling join table between parentheses Apr 21, 2022
sql/parse/parse.go Outdated Show resolved Hide resolved
Copy link
Contributor

@max-hoffman max-hoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a few nits and add query plan tests before merging.

@jennifersp jennifersp merged commit c52a7c7 into main Apr 22, 2022
@jennifersp jennifersp deleted the jennifer/join branch April 22, 2022 18:39
@knutwannheden
Copy link

Does this also fix dolthub/dolt#2203? It appears to be related. But please note that the parentheses have "semantics" and mustn't simply be ignored.

@jennifersp
Copy link
Contributor Author

Does this also fix dolthub/dolt#2203? It appears to be related. But please note that the parentheses have "semantics" and mustn't simply be ignored.

You're right! It does fix this issue as well. Thanks for catching it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support parsing join tables statements in parentheses
3 participants