From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp47.i.mail.ru (smtp47.i.mail.ru [94.100.177.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 455894696C3 for ; Sat, 4 Apr 2020 02:03:05 +0300 (MSK) From: Serge Petrenko Date: Sat, 4 Apr 2020 02:02:48 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 0/4] introduce indices over UUID List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: v.shpilevoy@tarantool.org Cc: tarantool-patches@dev.tarantool.org https://github.com/tarantool/tarantool/issues/4268 https://github.com/tarantool/tarantool/tree/sp/gh-4268-uuid-type Serge Petrenko (4): decimal: fix comment typo uuid: expose additional from_string constructors box: add MsgPack encoding/decoding for UUID box: introduce indices by UUID extra/exports | 3 + src/box/field_def.c | 66 +++++++++++--- src/box/field_def.h | 16 ++++ src/box/key_def.h | 3 +- src/box/tuple_compare.cc | 123 +++++++++++++++++++++++++++ src/box/tuple_format.c | 3 +- src/lib/core/CMakeLists.txt | 1 + src/lib/core/mp_decimal.h | 2 +- src/lib/core/mp_extension_types.h | 2 + src/lib/core/mp_uuid.c | 75 ++++++++++++++++ src/lib/core/mp_uuid.h | 90 ++++++++++++++++++++ src/lib/core/mpstream.c | 11 +++ src/lib/core/mpstream.h | 5 ++ src/lib/msgpuck | 2 +- src/lib/uuid/tt_uuid.c | 9 ++ src/lib/uuid/tt_uuid.h | 53 +++++++++--- src/lua/msgpack.c | 27 ++++-- src/lua/msgpackffi.lua | 14 +++ src/lua/utils.c | 21 ++++- src/lua/utils.h | 5 ++ src/lua/uuid.lua | 9 -- test/app-tap/lua/serializer_test.lua | 8 ++ test/app-tap/msgpackffi.test.lua | 3 +- test/app/msgpack.result | 21 +++++ test/app/msgpack.test.lua | 13 +++ test/app/uuid.result | 2 +- test/box/tuple.result | 81 ++++++++++++++++++ test/box/tuple.test.lua | 25 ++++++ test/engine/ddl.result | 97 ++++++++++++++++++++- test/engine/ddl.test.lua | 42 ++++++++- test/engine/gh-4268-uuid.result | 58 +++++++++++++ test/engine/gh-4268-uuid.test.lua | 30 +++++++ test/unit/uuid.c | 24 +++++- test/unit/uuid.result | 8 +- third_party/lua-cjson/lua_cjson.c | 27 ++++-- third_party/lua-yaml/lyaml.cc | 17 +++- 36 files changed, 933 insertions(+), 63 deletions(-) create mode 100644 src/lib/core/mp_uuid.c create mode 100644 src/lib/core/mp_uuid.h create mode 100644 test/engine/gh-4268-uuid.result create mode 100644 test/engine/gh-4268-uuid.test.lua -- 2.21.1 (Apple Git-122.3)