Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sql/analyzer/indexed_joins.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ func replanJoin(ctx *sql.Context, n *plan.JoinNode, a *Analyzer, scope *plan.Sco
if a.Verbose && a.Debug {
a.Log(m.String())
}
if scope != nil {
scope.JoinTrees = append(scope.JoinTrees, m.String())
}

return m.BestRootPlan(ctx)
}
Expand Down
1 change: 1 addition & 0 deletions sql/plan/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type Scope struct {
inJoin bool
inLateralJoin bool
joinSiblings []sql.Node
JoinTrees []string
}

func (s *Scope) SetJoin(b bool) {
Expand Down
Loading