From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 696B76EC40; Wed, 2 Jun 2021 11:02:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 696B76EC40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1622620968; bh=MrjGSNrc2opet3wMG6/RaF02azs5njjWCWyxIKmV5+c=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=I/OULrZlREjJFSwNAao4RGJTuqXrtxUCKJXsO5lDbujZlZ+kelu5hnaaw9kSohaiq OGt0OKh617h2Kb5Ex+RGA3WDL0bXJn+sN9orTQJB/nJlWDIYFwHJdQsvjx8dFPDlg3 HN+w8zOBORYw2og4QDr6/cYzLluEC5aImGHj7Ack= Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 F35E86EC40 for ; Wed, 2 Jun 2021 11:02:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org F35E86EC40 Received: by smtpng2.m.smailru.net with esmtpa (envelope-from ) id 1loLpt-0005is-W3; Wed, 02 Jun 2021 11:02:46 +0300 To: tsafin@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Wed, 2 Jun 2021 11:02:45 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9D5B0DA836B685C54907A7AE9C1BA82BC67C1327DFB87C6A6182A05F5380850405CBC463022B625C9DC35EBCD1D2D2B7426DCBF7A8633D6990C51797914783D6D X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE720512D700D056E85EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637B05885A782BE20C5EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BD6CF32B5F8F9D404E815A7874BFE641091D22B355B23E355CC7F00164DA146DAFE8445B8C89999728AA50765F7900637F924B32C592EA89F389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC8D2DCF9CF1F528DBCF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8BDC0F6C5B2EEF3D0C75ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-B7AD71C0: AC4F5C86D027EB782CDD5689AFBDA7A2AD77751E876CB595E8F7B195E1C97831327B9C087281EFBE1F3CAEEA48CA7BF2 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975CDBB9428EB2128D670B97D5ECD67A3A785F4EB1C3E6581C149C2B6934AE262D3EE7EAB7254005DCEDCCF148B411F834B11E0A4E2319210D9B64D260DF9561598F01A9E91200F654B06CE7B4E551862B828E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34EC58E35A639A24710FCE02F0BD0653FAAEB3A810698F01052A62F0D1398197033C13D8CCFF4024E51D7E09C32AA3244C90D66D3BA11C975848A49C6FA10762396C24832127668422729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj+mfSpkNmA2ohSXYgoLELxw== X-Mailru-Sender: 689FA8AB762F73936BC43F508A0638224959C09089900D9E53792A11A24B5C9183D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 0/2] sql: introduce UUID X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mergen Imeev via Tarantool-patches Reply-To: imeevma@tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This patch-set introduces UUID to SQL. After this patch-set UUID field type will be available in SQL and UUID values can be generated using UUID() function. https://github.com/tarantool/tarantool/issues/5886 https://github.com/tarantool/tarantool/tree/imeevma/gh-5886-introduce-uuid-type-in-sql Changes in v2: - Added SQL built-in function uuid(). Mergen Imeev (2): sql: introduce UUID field type sql: introduce SQL built-in function UUID() .../unreleased/introduce-uuid-to-sql.md | 3 + extra/mkkeywordhash.c | 1 + src/box/bootstrap.snap | Bin 5991 -> 6016 bytes src/box/lua/upgrade.lua | 19 + src/box/sql/func.c | 69 +- src/box/sql/mem.c | 203 ++- src/box/sql/mem.h | 29 +- src/box/sql/parse.y | 3 +- src/box/sql/vdbe.c | 15 +- test/box-py/bootstrap.result | 3 +- test/box/access.result | 2 +- test/box/access.test.lua | 2 +- test/box/access_bin.result | 2 +- test/box/access_bin.test.lua | 2 +- test/box/access_sysview.result | 8 +- test/box/function1.result | 6 +- test/sql-tap/CMakeLists.txt | 1 + .../gh-5913-segfault-on-select-uuid.test.lua | 42 +- .../sql-tap/gh-6024-funcs-return-bin.test.lua | 8 +- test/sql-tap/sql_uuid.c | 46 + test/sql-tap/uuid.test.lua | 1344 +++++++++++++++++ test/wal_off/func_max.result | 8 +- 22 files changed, 1731 insertions(+), 85 deletions(-) create mode 100644 changelogs/unreleased/introduce-uuid-to-sql.md create mode 100644 test/sql-tap/sql_uuid.c create mode 100755 test/sql-tap/uuid.test.lua -- 2.25.1