Skip to content

Commit

Permalink
Update plan_cache.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fzzf678 committed Mar 15, 2023
1 parent 82283ae commit 67cc542
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions planner/core/plan_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,8 @@ func buildRangeForIndexScan(sctx sessionctx.Context, is *PhysicalIndexScan) (err
if ranger.HasFullRange(is.Ranges, false) { // the original range is already a full-range.
is.Ranges = ranger.FullRange()
return
} else {
return errors.New("unexpected range for PhysicalIndexScan")
}
return errors.New("unexpected range for PhysicalIndexScan")
}

res, err := ranger.DetachCondAndBuildRangeForIndex(sctx, is.AccessCondition, is.IdxCols, is.IdxColLens, 0)
Expand Down

0 comments on commit 67cc542

Please sign in to comment.