Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#21694] YSQL: allow arbitrary upper bound in backward scan requests
Summary: Previously the function to find the target partition for backward scan might work incorrectly if the upper bound wasn't a partition bound. It seems like it always was the case when bounds were set for a backward scan request. However, parallel backward scan uses the bounds and they may be arbitrary keys. Also, fix the test. Correct target partition to start backward scan with valid upper bound is the partition holding the bound, unless the bound equals to lower key of the partition and upper bound is exclusive, when target partition is the previous partition. Jira: DB-10577 Test Plan: ./yb_build --cxx-test client_client-test --gtest_filter ClientTest.TestKeyRangeUpperBoundFiltering Reviewers: arybochkin, timur Reviewed By: arybochkin Subscribers: ybase, yql Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D33590
- Loading branch information
1 parent
ff72ba1
commit 692970d
Showing
2 changed files
with
11 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters