Skip to content

Conversation

@nicktobey
Copy link
Contributor

@nicktobey nicktobey commented Dec 9, 2025

This effectively reverts a change that was introduced in #3289 (potentially by accident). For a large join (16+ tables), full enumeration of every possible join plan is too slow. In the event that we can't find a good join plan heuristically, we should stick to the original join order, and not attempt to enumerate all the possible joins.

This results in worse joins in the IMDB query tests... but those tests were previously skipped because they were too slow, and we can now unskip them.

Ideally we would do a better job of finding the best join without needing to fall back on an exhaustive search, but in the meantime, this serves as a workaround.

…ikely because exhaustive enumeration would be too slow. Instead of falling back on exhaustive enumeration, simply skip the enumeration, which will result in the same join order from the original query.
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

@nicktobey nicktobey merged commit 6990635 into main Dec 12, 2025
8 checks passed
@nicktobey nicktobey deleted the nicktobey/outerEquivs branch December 12, 2025 23:53
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.

3 participants