Skip to content

box: compare pagination position against key only for tree index#11964

Merged
sergepetrenko merged 1 commit intotarantool:masterfrom
drewdzzz:rtree-pagination-key
Oct 27, 2025
Merged

box: compare pagination position against key only for tree index#11964
sergepetrenko merged 1 commit intotarantool:masterfrom
drewdzzz:rtree-pagination-key

Conversation

@drewdzzz
Copy link
Contributor

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

@drewdzzz drewdzzz requested a review from a team as a code owner October 22, 2025 09:02
@drewdzzz drewdzzz requested review from mkostoevr and nshy October 22, 2025 09:02
@coveralls
Copy link

coveralls commented Oct 22, 2025

Coverage Status

coverage: 87.644% (-0.02%) from 87.661%
when pulling 9e87b46 on drewdzzz:rtree-pagination-key
into 0628d91
on tarantool:master
.

@nshy nshy requested a review from locker October 23, 2025 12:08
@nshy nshy assigned locker and unassigned nshy Oct 23, 2025
@locker locker removed their assignment Oct 23, 2025
@drewdzzz drewdzzz removed the request for review from mkostoevr October 27, 2025 08:51
@drewdzzz drewdzzz assigned drewdzzz and unassigned mkostoevr Oct 27, 2025
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 tarantool#11963

NO_DOC=bugfix
@drewdzzz drewdzzz force-pushed the rtree-pagination-key branch from e7f3dcf to 9e87b46 Compare October 27, 2025 08:52
@drewdzzz drewdzzz added full-ci Enables all tests for a pull request backport/3.2 Automatically create a 3.2 backport PR backport/3.3 Automatically create a 3.3 backport PR backport/3.4 Automatically create a 3.4 backport PR backport/3.5 Automatically create a 3.5 backport PR labels Oct 27, 2025
@drewdzzz drewdzzz assigned sergepetrenko and unassigned drewdzzz Oct 27, 2025
@sergepetrenko sergepetrenko removed the full-ci Enables all tests for a pull request label Oct 27, 2025
@sergepetrenko sergepetrenko merged commit 9941bd5 into tarantool:master Oct 27, 2025
78 of 82 checks passed
@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.2:

@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.3:

@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.4:

@TarantoolBot
Copy link
Collaborator

Successfully created backport PR for release/3.5:

@TarantoolBot
Copy link
Collaborator

Backport summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/3.2 Automatically create a 3.2 backport PR backport/3.3 Automatically create a 3.3 backport PR backport/3.4 Automatically create a 3.4 backport PR backport/3.5 Automatically create a 3.5 backport PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash when trying to use pagination with key in rtree

8 participants