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 A5FB86EC41; Wed, 18 Aug 2021 17:34:55 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org A5FB86EC41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1629297295; bh=pU7CV70IE6jBC3A7xZ7XKfGWlO2X1BNWy1LsY65Shzs=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=tEBQ+v0ph5briWMhhjH7CWxnZMlxEQLd9pCF02aj6ekLKSGMuJk3P3+gythJTmfXs HsZgqEIn4mnZBrHj2OQC8jFRNmh0cuSUKgI1ucOhA8lzbszSGLpsG4quYrEiyue22B FGO4bDM97HiL5XiUyDf6BNP+fREGpat1gO34PeWo= 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 047D36EC40 for ; Wed, 18 Aug 2021 17:34:53 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 047D36EC40 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1mGMea-0002sK-10; Wed, 18 Aug 2021 17:34:52 +0300 To: vdavydov@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Wed, 18 Aug 2021 17:34:51 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD92087353F0EC44DD9736CF3E71F18CE0C3E1D5927724F4AAA182A05F538085040577C00CC7D1F2C1AC1B2513A803F11822DE0FF127E27D6124FCBE172E2C35FED X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7CF4D16325FBE1EEDEA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637B1AF1CB5CD5D34E98638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8D31FF9240DB003CB282320EC93F96693117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCAA867293B0326636D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8BAA867293B0326636D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B6B1CFA6D474D4A6A4089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C4C7A0BC55FA0FE5FC2BD45982C12FCA75AC1F1242CD6A1933DBFABF44C70B097EB1881A6453793CE9C32612AADDFBE061A1FF98DB175DA21F9510FB958DCE06DB6ED91DBE5ABE359A48600B0EAD68145B1F9270390973918F93EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34A5112A9AECFE11B1E2E98CC459F8497C534F30C9DD73A4E95B78A25CA0CCAC2E5699221C6C94C3291D7E09C32AA3244C14A46580E6E5622F29D4E0854B691588B038C9161EF167A1729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojuRQ/H5n28toWE3Wn7fwnMg== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D27EBD20C48F2A31E83C51A260F3B086383D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 0/5] Prepare for static arguments type check 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 is a preparatory patch-set for adding static and dynamic type checking to SQL built-in function arguments. Mergen Imeev (5): sql: modify arithmetic aggregate functions sql: introduce SQL built-in functions to parser sql: separate functions in parser sql: separate function flags from functions sql: encapsulate SQL built-in functions opcodes extra/addopcodes.sh | 1 + extra/mkkeywordhash.c | 37 +- src/box/sql/expr.c | 158 +++++-- src/box/sql/func.c | 271 ++++++++---- src/box/sql/parse.y | 515 ++++++++++++++++++++++- src/box/sql/resolve.c | 57 +-- src/box/sql/select.c | 18 +- src/box/sql/sqlInt.h | 35 +- src/box/sql/treeview.c | 1 + src/box/sql/vdbemem.c | 2 +- test/box/tx_man.result | 4 +- test/box/tx_man.test.lua | 4 +- test/sql-tap/autoindex5.test.lua | 2 +- test/sql-tap/built-in-functions.test.lua | 109 +++++ test/sql-tap/default.test.lua | 2 +- test/sql-tap/e_select1.test.lua | 2 +- test/sql-tap/func.test.lua | 92 +--- test/sql-tap/func2.test.lua | 18 +- test/sql-tap/func5.test.lua | 6 +- test/sql-tap/identifier_case.test.lua | 9 +- test/sql-tap/keyword1.test.lua | 41 +- test/sql-tap/minmax4.test.lua | 2 +- test/sql-tap/misc5.test.lua | 4 +- test/sql-tap/null.test.lua | 2 +- test/sql-tap/select1.test.lua | 16 +- test/sql-tap/select3.test.lua | 16 +- test/sql-tap/select5.test.lua | 2 +- test/sql-tap/select6.test.lua | 37 +- test/sql-tap/select8.test.lua | 8 +- test/sql-tap/selectG.test.lua | 2 +- test/sql-tap/sql-errors.test.lua | 8 +- test/sql-tap/subquery.test.lua | 8 +- test/sql-tap/tkt1449.test.lua | 2 +- test/sql-tap/uuid.test.lua | 8 +- test/sql-tap/where3.test.lua | 8 +- test/sql/boolean.result | 6 +- test/sql/collation.result | 6 +- test/sql/collation.test.lua | 4 +- test/sql/message-func-indexes.result | 6 +- test/sql/message-func-indexes.test.lua | 6 +- test/sql/types.result | 8 +- 41 files changed, 1181 insertions(+), 362 deletions(-) create mode 100755 test/sql-tap/built-in-functions.test.lua -- 2.25.1