Skip to content

Fix STRAIGHT_JOIN constraint when table alias is absent #1812

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

Merged
merged 2 commits into from
Apr 15, 2025

Conversation

killertux
Copy link
Contributor

In #1802 was added support for MySQL STRAIGHT_JOIN, but it was not added as a RESERVED_FOR_TABLE_ALIAS. Because of this, it fails to parse queries where we are not using an alias.

Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

Thanks @killertux! Left one minor comment to merge the test cases otherwise this looks good to me

Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

Thanks @killertux!
cc @alamb

@iffyio iffyio changed the title Fix STRAIGHT_JOIN not in RESERVED_FOR_TABLE_ALIAS Fix STRAIGHT_JOIN constraint when table alias is absent Apr 15, 2025
@iffyio iffyio merged commit 81d8909 into apache:main Apr 15, 2025
9 checks passed
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.

2 participants