[tarantool-patches] Re: [PATCH 4/4] schema: explicitly forbid setting sequence for json path key part
Konstantin Osipov
kostja at tarantool.org
Wed May 15 16:00:26 MSK 2019
* Vladimir Davydov <vdavydov.dev at gmail.com> [19/05/15 14:16]:
> When a space has a sequence, we substitute NULL in the corresponding
> primary index part with the next value generated by the sequence. We do
> this by patching raw msgpack, see request_handle_sequence. The problem
> is we can't do it easily if the field is nested. For example, consider
> field [1].a.b. In Lua it is impossible to create tuple {{a = {b = nil}}}
It is trivial to do, use msgpack.NULL
> so we would need to restore the whole path from an empty tuple.
No, it's not the job of the sequence to fill in the entire path.
You can expect the right prefix to be there.
--
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
More information about the Tarantool-patches
mailing list