You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff--gita/go/vt/vtgate/planbuilder/routetree.gob/go/vt/vtgate/planbuilder/routetree.goindex29bcb4d1fa..e460a46e1f100644---a/go/vt/vtgate/planbuilder/routetree.go+++b/go/vt/vtgate/planbuilder/routetree.go
@@ -521,8+521,11 @@ func (rp*routeTree) pickBestAvailableVindex() {
for_, v:=rangerp.vindexPreds {
option:=v.bestOption()
ifoption!=nil&& (rp.selected==nil||less(option.cost, rp.selected.cost)) {
-rp.selected=option-rp.routeOpCode=option.opcode+// Only pick single column vindexes for now until we have support for multi column vindexes.+if_, ok:=option.foundVindex.(vindexes.SingleColumn); ok {
+ rp.selected=option+rp.routeOpCode=option.opcode+ }
}
}
}
The text was updated successfully, but these errors were encountered:
If multi-column vindex is defined on a table, Gen4 planner panic on it when using it on select query.
potential fix
The text was updated successfully, but these errors were encountered: