Skip to content

Commit 7d53252

Browse files
authored
Merge pull request #1679 from dolthub/daylon/join-fix
Small fix for a join-related regression in Dolt
2 parents 793407f + 3efa34d commit 7d53252

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/analyzer/indexed_joins.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ func constructJoinPlan(ctx *sql.Context, a *Analyzer, n sql.Node, scope *Scope,
5656
case *plan.JoinNode:
5757
reorder = false
5858
}
59+
case *plan.Union:
60+
reorder = false
5961
case *plan.JoinNode:
6062
if n.JoinType().IsPhysical() {
6163
// TODO: nested subqueries attempt to replan joins, which

0 commit comments

Comments
 (0)