Skip to content

Commit

Permalink
handle merged routes correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <andres@planetscale.com>
  • Loading branch information
systay committed Sep 16, 2024
1 parent 5a5664c commit 39c91e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/planbuilder/operators/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ func (r *Route) GetOrdering(ctx *plancontext.PlanningContext) []OrderBy {
// in Inputs() and thus not a part of the operator tree
func (r *Route) TablesUsed(in []string) []string {
for _, mw := range r.MergedWith {
in = append(in, mw.TablesUsed(in)...)
in = append(in, TablesUsed(mw)...)
}
return in
}
Expand Down

0 comments on commit 39c91e6

Please sign in to comment.