Skip to content

Crash when trying to use pagination with key in rtree #11963

@drewdzzz

Description

@drewdzzz

Consider the script:

-- Cleanup.
os.execute('rm 00*')

box.cfg{}

box.schema.space.create('test')
box.space.test:create_index('pk')
box.space.test:create_index('sk', {type = 'rtree', parts = {2, 'array'}})
box.space.test.index.sk:select({1, 2}, {after = {1, {1, 2}}})

Result:

Assertion failed: (0), function tuple_compare_field, file tuple_compare.cc, line 535.

The reason is we trying to compare position and key on position validation, and array comparison is not supported.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrash

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions