Skip to content

Functional index function doesn't have to sandboxed anymore #4407

Open
@TarantoolBot

Description

@TarantoolBot

Product: Tarantool
Since: 3.2
Root document: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_schema/func_create/#lua-data.function_options.is_sandboxed
https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/create_index/#creating-a-functional-index

SME: @ locker

Details

The user may now create a functional index using a function that doesn't
have the flag is_sandboxed. Note that a functional index function must
be deterministic and isn't allowed to yield or access the database so
the flag is_sandboxed is still recommended. However, there are cases
when the user might want to clear the flag. For example, it's the only
way to let a functional index function to call a deterministic function
defined in a module (e.g. json.encode).
Requested by @locker in tarantool/tarantool@9e616ab.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.2featureA new functionalityreference[location] Tarantool manual, Reference part

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions