Skip to content

Commit

Permalink
Remove the wrong validation for non-unique lookups
Browse files Browse the repository at this point in the history
Signed-off-by: Noble Mittal <[email protected]>
  • Loading branch information
beingnoble03 committed Dec 16, 2024
1 parent 9e401e4 commit 919bfe4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions go/vt/vtctl/workflow/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,6 @@ func (l *lookup) validateAndGetVindex(specs *vschemapb.Keyspace) (*vschemapb.Vin
if len(vindexFromCols) != 1 {
return nil, nil, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "unique vindex 'from' should have only one column")
}
} else {
if len(vindexFromCols) < 2 {
return nil, nil, vterrors.Errorf(vtrpcpb.Code_INVALID_ARGUMENT, "non-unique vindex 'from' should have more than one column")
}
}

vindexToCol := vindex.Params["to"]
Expand Down

0 comments on commit 919bfe4

Please sign in to comment.