[tarantool-patches] Re: [PATCH] box: fix autoincrement for json path indexes

Konstantin Osipov kostja at tarantool.org
Thu May 16 10:42:56 MSK 2019


* Vladimir Davydov <vdavydov.dev at gmail.com> [19/05/15 16:50]:
> The autoincrement code was written when there were no nested field.
> Now, it isn't enough to just skip to the autoincrement field - we also
> need to descend deeper if key_part->path is set.
> 
> Note, the code expects the nested field to be present and set to NULL.
> That is, if field path is [1].a.b, the tuple must have all intermediate
> fields set: {{a = {b = box.NULL}}} (usage of box.NULL is mandatory to
> create a tuple like that in Lua).

Please write a request to docs since this part deserves a spetial
mention in the sequences docs. The patch itself is OK to push.


-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32




More information about the Tarantool-patches mailing list