[PATCH v3 0/3] Implement json path access to tuple fields
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Tue Apr 10 11:31:43 MSK 2018
Branch: http://github.com/tarantool/tarantool/tree/gh-1285-tuple-field-by-json-icu
Issue: https://github.com/tarantool/tarantool/issues/1285
Tuple field access by JSON path provides fast access to a field and field
internals with no unpacking an entire tuple or even the field into Lua.
This patchset is a first part of JSON introduction into Tarantool core. It
introduces the JSON path parser and tuple internals access by JSON. The next
patchsets will introduce tuple update by JSON - gh-1261, indexing by
JSON - gh-1012.
Kirill Shcherbatov (2):
Introduce json_path_parser with Unicode support.
Lua: implement json path access to tuple fields
Vladislav Shpilevoy (1):
Allow gcov on Mac
cmake/profile.cmake | 9 --
src/box/CMakeLists.txt | 2 +-
src/box/lua/tuple.c | 63 ++++++++----
src/box/lua/tuple.lua | 49 +++------
src/box/tuple.h | 21 ++++
src/box/tuple_format.c | 164 +++++++++++++++++++++++++++++
src/box/tuple_format.h | 19 ++++
src/lib/CMakeLists.txt | 1 +
src/lib/json/CMakeLists.txt | 6 ++
src/lib/json/path.c | 245 ++++++++++++++++++++++++++++++++++++++++++++
src/lib/json/path.h | 112 ++++++++++++++++++++
test/engine/tuple.result | 229 +++++++++++++++++++++++++++++++++++++++++
test/engine/tuple.test.lua | 67 ++++++++++++
test/unit/CMakeLists.txt | 3 +
test/unit/json_path.c | 172 +++++++++++++++++++++++++++++++
test/unit/json_path.result | 98 ++++++++++++++++++
16 files changed, 1195 insertions(+), 65 deletions(-)
create mode 100644 src/lib/json/CMakeLists.txt
create mode 100644 src/lib/json/path.c
create mode 100644 src/lib/json/path.h
create mode 100644 test/unit/json_path.c
create mode 100644 test/unit/json_path.result
--
2.14.3 (Apple Git-98)
More information about the Tarantool-patches
mailing list