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 4DEEA6F3E5; Thu, 11 Nov 2021 14:37:41 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 4DEEA6F3E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1636630661; bh=fLKGGfD7uUjcKirxFzfn2GRQ183lpARtIQoR+lBkorQ=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=OQVsW1atVAQStDb54amBs4+rxTUV74mfdQ2yz5bw7mQGx1r+Ihc7HJD6J4/Eb12U1 7Dq17sdFESKRz6YxMNgsjwUDkK5jrmjReoFUVrI6wTla6DUrV38L3+8OA66flHWfLv +kZxYbFMi6pLNa+2xA2bVbFxYQhWxvT+7IcHL6Ts= Received: from smtpng1.i.mail.ru (smtpng1.i.mail.ru [94.100.181.251]) (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 644A16F3E5 for ; Thu, 11 Nov 2021 14:37:40 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 644A16F3E5 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1ml8Oh-00011h-RY; Thu, 11 Nov 2021 14:37:40 +0300 To: v.shpilevoy@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Thu, 11 Nov 2021 14:37:39 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD9731B3922EC0639794B1FA730FFF2612B18842EFC24E0D5F400894C459B0CD1B944A7A9611079C8DF73CE06D8CD7F2B0D7B241399135D2ADCFFE08B25EE243894 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7BC08626EA5717D14EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006371005780D56A98C20EA1F7E6F0F101C6723150C8DA25C47586E58E00D9D99D84E1BDDB23E98D2D38BBCA57AF85F7723F20157EE3B619A652807F0160EAE4BCF24CC7F00164DA146DAFE8445B8C89999728AA50765F7900637F6B57BC7E64490618DEB871D839B7333395957E7521B51C2DFABB839C843B9C08941B15DA834481F8AA50765F7900637F6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA7E827F84554CEF5019E625A9149C048EE9ECD01F8117BC8BEE2021AF6380DFAD18AA50765F790063735872C767BF85DA227C277FBC8AE2E8BDC0F6C5B2EEF3D0C75ECD9A6C639B01B4E70A05D1297E1BBCB5012B2E24CD356 X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C7E9FEBB9C11794A17D7913AA409E9EE9158002AA5E4581BD9C2B6934AE262D3EE7EAB7254005DCED1C8AEA1E975C27AC1E0A4E2319210D9B64D260DF9561598F01A9E91200F654B0EAEA4589B73F69A88E8E86DC7131B365E7726E8460B7C23C X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34AC223B6CC5B2DFAC4783E1D033B5AB3A08EF738501489A53D1ADDE4A93B6324EB22C607404B008DA1D7E09C32AA3244CB0DA924AE9FC3050740B329D9E1BA91D9CA7333006C390A0729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2bioj4t8MBgWr8bJBdVphR04EwQ== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D136F2046E21089A1C1F88F8AE2CAF44883D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v1 0/2] Introduce field type MAP to SQL 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 introduces field type MAP to SQL. Also, it adds function MAP() that is used to create values of type ARRAY. https://github.com/tarantool/tarantool/issues/4763 https://github.com/tarantool/tarantool/tree/imeevma/gh-4763-introduce-map Mergen Imeev (2): sql: introduce field type MAP sql: introduce MAP() function .../gh-4763-introduce-map-to-sql.md | 4 + extra/mkkeywordhash.c | 1 + src/box/sql/func.c | 30 +- src/box/sql/mem.c | 76 +- src/box/sql/mem.h | 21 + src/box/sql/parse.y | 3 +- test/box/function1.result | 5 - test/box/function1.test.lua | 1 - test/sql-tap/map.test.lua | 1106 +++++++++++++++++ 9 files changed, 1233 insertions(+), 14 deletions(-) create mode 100644 changelogs/unreleased/gh-4763-introduce-map-to-sql.md create mode 100755 test/sql-tap/map.test.lua -- 2.25.1