Skip to content

[backport 3.5] box: compare pagination position against key only for tree index#11996

Merged
sergepetrenko merged 1 commit intorelease/3.5from
backport/release/3.5/11964
Oct 28, 2025
Merged

[backport 3.5] box: compare pagination position against key only for tree index#11996
sergepetrenko merged 1 commit intorelease/3.5from
backport/release/3.5/11964

Conversation

@TarantoolBot
Copy link
Collaborator

@TarantoolBot TarantoolBot commented Oct 27, 2025

(This PR is a backport of #11964 to release/3.5 to a future 3.5.1 release.)


Currently, we check that pagination position meets search criteria, otherwise the invalid position can break Tarantool or lead to invalid results. However, this check mustn't be done for rtree index because it works with array fields and our comparators don't support them. Since this check makes sense only for tree index (because it's the only ordered index), let's simply omit this check for other indexes.

Closes #11963

Currently, we check that pagination position meets search criteria,
otherwise the invalid position can break Tarantool or lead to invalid
results. However, this check mustn't be done for `rtree` index because
it works with `array` fields and our comparators don't support them.
Since this check makes sense only for `tree` index (because it's the
only ordered index), let's simply omit this check for other indexes.

Closes #11963

NO_DOC=bugfix

(cherry picked from commit 9941bd5)
@TarantoolBot TarantoolBot requested a review from a team as a code owner October 27, 2025 15:08
@TarantoolBot TarantoolBot changed the title [Backport release/3.5] box: compare pagination position against key only for tree index [backport 3.5] box: compare pagination position against key only for tree index Oct 27, 2025
@coveralls
Copy link

Coverage Status

coverage: 87.623%. remained the same
when pulling 128b213 on backport/release/3.5/11964
into 5fe9060
on release/3.5
.

@sergepetrenko sergepetrenko merged commit 74b3346 into release/3.5 Oct 28, 2025
25 checks passed
@sergepetrenko sergepetrenko deleted the backport/release/3.5/11964 branch October 28, 2025 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants