Repository navigation
Conversation
|
Workflow [PR], commit [f8b82f5] Summary: ❌
AI ReviewSummaryThis PR changes greedy join reordering so disconnected component pairs are skipped in the normal pair scan and only considered by the fallback path. That avoids choosing a Findings❌ Blockers
Tests
Final VerdictStatus: ❌ Block Minimum required action: make the disconnected fallback scan/select a valid pair under |
| bool connected = !edge.empty() | ||
| || query_graph.areTransitivelyConnected(left->relations, right->relations); | ||
| if (!connected && best_plan) | ||
| if (!connected) |
There was a problem hiding this comment.
This makes the fallback below responsible for all disconnected joins, but that fallback picks the two smallest components before checking whether that pair is legal. For example, in t0, t1 LEFT JOIN t2 ON t0.k = t2.k AND t1.k = t2.k, buildQueryGraph records t2 as depending on both t0 and t1; the only valid first step is the disconnected t0 CROSS JOIN t1. If stats make t2 one of the two smallest components, the fallback chooses t2 with only one dependency, isValidJoinOrder returns false, and the optimizer raises Join restriction violated for a valid query. Please make the disconnected fallback scan/select the best valid pair instead of validating only the two smallest components.
|
Dear @vdimir, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...