From dc040f0dccbd0d538a4888305109c5400df0caa6 Mon Sep 17 00:00:00 2001 From: Arthur Schreiber Date: Wed, 16 Oct 2024 09:22:26 +0000 Subject: [PATCH] Add support for `MultiEqual` opcode for lookup vindexes. Signed-off-by: Arthur Schreiber --- go/vt/vtgate/engine/vindex_lookup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtgate/engine/vindex_lookup.go b/go/vt/vtgate/engine/vindex_lookup.go index 8bf8755c40e..2e0e2857498 100644 --- a/go/vt/vtgate/engine/vindex_lookup.go +++ b/go/vt/vtgate/engine/vindex_lookup.go @@ -252,7 +252,7 @@ func (vr *VindexLookup) generateIds(ctx context.Context, vcursor VCursor, bindVa switch vr.Opcode { case Equal, EqualUnique: return []sqltypes.Value{value.Value(vcursor.ConnCollation())}, nil - case IN: + case IN, MultiEqual: return value.TupleValues(), nil } return nil, vterrors.Errorf(vtrpcpb.Code_INTERNAL, "opcode %s not supported for VindexLookup", vr.Opcode.String())