Skip to content

Commit

Permalink
adapt bug fix pingcap#10244
Browse files Browse the repository at this point in the history
  • Loading branch information
lzmhhh123 committed Jul 2, 2019
1 parent 6c3888b commit 1aaf860
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions executor/index_lookup_merge_join.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,10 @@ func (imw *innerMergeWorker) constructDatumLookupKey(task *lookUpMergeJoinTask,
innerColType := imw.rowTypes[imw.keyCols[i]]
innerValue, err := outerValue.ConvertTo(sc, innerColType)
if err != nil {
// If the converted outerValue overflows, we don't need to lookup it.
if terror.ErrorEqual(err, types.ErrOverflow) {
return nil, nil
}
return nil, err
}
cmp, err := outerValue.CompareDatum(sc, &innerValue)
Expand Down

0 comments on commit 1aaf860

Please sign in to comment.