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

Vladimir Davydov vdavydov.dev at gmail.com
Tue May 21 16:28:14 MSK 2019


On Thu, May 16, 2019 at 10:42:56AM +0300, Konstantin Osipov wrote:
> * 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.

Done: https://github.com/tarantool/doc/issues/782



More information about the Tarantool-patches mailing list