[Tarantool-patches] [PATCH 0/3] JSON update

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Tue Dec 24 01:41:47 MSK 2019


The patchset finishes JSON update feature by allowance of making
multiple update operations with the same prefix in one update().

The patchset consists of relatively independent self-explaining
parts. First part is a preparation for having not just a set of
updates, but for having an update tree, with number and string
keys.

Second part makes it possible to do multiple update operations
having the same prefix if it ends on an array index.

The final part introduces map updates, documentation request, and
finishes the feature.

Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-1261-json-update
Issue: https://github.com/tarantool/tarantool/issues/1261

Vladislav Shpilevoy (3):
  tuple: make update operation tokens consumable
  tuple: JSON path update intersection at arrays
  tuple: JSON path update intersection at maps

 src/box/CMakeLists.txt      |   2 +
 src/box/xrow_update_array.c |  97 +++++++-
 src/box/xrow_update_bar.c   |  14 +-
 src/box/xrow_update_field.c |  30 +++
 src/box/xrow_update_field.h | 209 ++++++++++++++++-
 src/box/xrow_update_map.c   | 453 ++++++++++++++++++++++++++++++++++++
 src/box/xrow_update_route.c | 387 ++++++++++++++++++++++++++++++
 test/box/update.result      | 329 ++++++++++++++++++++++++++
 test/box/update.test.lua    | 166 +++++++++++++
 9 files changed, 1672 insertions(+), 15 deletions(-)
 create mode 100644 src/box/xrow_update_map.c
 create mode 100644 src/box/xrow_update_route.c

-- 
2.21.0 (Apple Git-122.2)



More information about the Tarantool-patches mailing list