Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
Do not use tipb.KeyRange. Use EncodeRowKeyWithHandle to generate endKey. Avoid decode values when only need handle.