Skip to content

crud.pairs and crud.select hang when selecting tuples by jsonpath index #106

Closed
@akudiyar

Description

@akudiyar

Consider a space with a field of type 'map' and a secondary index over a nested field:

appeals = box.schema.create_space('appeals', { format = {
    { name = 'session_id', type = 'uuid', is_nullable = false },
    { name = 'agent', type = 'map', is_nullable = true },
}})
appeals:create_index('primary', {
    parts = { 'session_id' },
    if_not_exists = true
})
appeals:create_index('agent_id', {
    parts = { { field = 'agent', type = 'string', path = '.agent_id' } },
    unique = false,
    if_not_exists = true
})

When trying to select tuples directly via box API on the storages, it works as expected:

image

When trying to select via CRUD API on a router, the request hangs:

crud.select('appeals', { { '==', 'agent_id', 'denis.tulupov' } }, { use_tomap = true })

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions