Skip to content

Detect-and-bail guard for the join_order heuristic in cyclic join queries - #23

Open
jianhongshi123 wants to merge 2 commits into
robust-sql:mainfrom
jianhongshi123:dev/cyclic_join
Open

Detect-and-bail guard for the join_order heuristic in cyclic join queries#23
jianhongshi123 wants to merge 2 commits into
robust-sql:mainfrom
jianhongshi123:dev/cyclic_join

Conversation

@jianhongshi123

Copy link
Copy Markdown
Contributor

Cyclic join graphs can produce equivalence classes that LogicalCreateFilter::CreatePlan can't fully resolve, causing an out-of-bounds access in bound_column_indices at sink time.

This PR adds a detect-and-bail guard for the join_order heuristic. When a cyclic join graph is detected, the optimizer skips predicate transfer and returns the original plan.

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.

1 participant