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 777866EC5F; Wed, 4 Aug 2021 15:58:39 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 777866EC5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1628081919; bh=wU027AK1IJJ17p7KFZJoRD0d0SsEfvuz4Gi7++yiPnQ=; h=To:Cc:Date:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=rYiQurZV+wDF7uwtZcAkgziAvlqpjsKgWWAdhlhFIQlWEbuL346lUbGmchN7pdjM1 G20GienfX4B6Kq0yipf8r44EHvaMQiX+C3Ewy0WSLNYs272OoBUvLTWaxJH/trXs88 Q1rzo9xJM+bFMbX49MDgs/mxWVkyCZuAroe2rF7Q= 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 31E086EC58 for ; Wed, 4 Aug 2021 15:58:37 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 31E086EC58 Received: by smtpng1.m.smailru.net with esmtpa (envelope-from ) id 1mBGTj-0000Dg-Qa; Wed, 04 Aug 2021 15:58:36 +0300 To: v.shpilevoy@tarantool.org Cc: tarantool-patches@dev.tarantool.org Date: Wed, 4 Aug 2021 15:58:35 +0300 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-7564579A: 646B95376F6C166E X-77F55803: 4F1203BC0FB41BD941C43E597735A9C36A98DBA789EBB6AE26DB9A6C1D9BF7E0182A05F5380850406FD443FDAD462488045699E71A114B90EAA0A6ED53F98887A33C326F2F5024E5 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE754E958D11587BC68EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F79006373318DFCEF5C6D9308638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D87132CB2E3596862E6D14EC4FE00B74E8117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCAA867293B0326636D2E47CDBA5A96583BD4B6F7A4D31EC0BC014FD901B82EE079FA2833FD35BB23D27C277FBC8AE2E8BAA867293B0326636D2E47CDBA5A96583BA9C0B312567BB231DD303D21008E29813377AFFFEAFD269A417C69337E82CC2E827F84554CEF50127C277FBC8AE2E8BA83251EDC214901ED5E8D9A59859A8B66F6A3E018CF4DC80089D37D7C0E48F6C5571747095F342E88FB05168BE4CE3AF X-C1DE0DAB: C20DE7B7AB408E4181F030C43753B8186998911F362727C414F749A5E30D975C30CE973C7F71088D03AA755049587B06852B84BD450DBB0D9C2B6934AE262D3EE7EAB7254005DCED556CBE7F905700A49510FB958DCE06DB6ED91DBE5ABE359A48600B0EAD68145BB129A6C9085D3B6193EDB24507CE13387DFF0A840B692CF8 X-C8649E89: 4E36BF7865823D7055A7F0CF078B5EC49A30900B95165D34F1257DC9690AEBA13F85A10DAE215038A4AC2C101C60CA05112022FC9827849006B9FC767082F9B71D7E09C32AA3244C052B7C50EC0DA2CA1D65F07B649160BCE3D93501275E802F729B2BEF169E0186 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojeDyvyeZJDJGsr7e7uqFE8w== X-Mailru-Sender: 689FA8AB762F7393C37E3C1AEC41BA5D901CAC2B23B36AF75C2DADB1DC60719983D72C36FC87018B9F80AB2734326CD2FB559BB5D741EB96352A0ABBE4FDA4210A04DAD6CC59E33667EA787935ED9F1B X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 0/6] Remove SQL built-in functions from _func 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 removes SQL built-in functions from _func and prohibits functions with SQL_BUILTIN engine to be decribed in _func system space. Changes in v2: - Added some functions that simplifies work with SQL built-in functions. - Removed some code that become unused due to removal of SQL built-in functions from _func. - Prohibited to insert tuples with "language" = 'SQL_BUILTIN' to _func. Mergen Imeev (5): sql: introduce sql_func_flags() sql: introduce sql_func_find() sql: remove SQL built-in functions from _func alter: disallow creation of SQL built-in function sql: remove unnecessary function initialization Vladislav Shpilevoy (1): alter: parse data dictionary version ...gh-6106-remove-sql-built-ins-from-_func.md | 7 + src/box/alter.cc | 63 +++++- src/box/bootstrap.snap | Bin 6016 -> 4891 bytes src/box/box.cc | 1 + src/box/func.c | 7 - src/box/lua/upgrade.lua | 16 +- src/box/schema.cc | 4 + src/box/schema.h | 1 + src/box/sql.c | 1 + src/box/sql.h | 9 + src/box/sql/analyze.c | 12 ++ src/box/sql/expr.c | 23 +-- src/box/sql/func.c | 189 +++++++++++++----- src/box/sql/resolve.c | 22 +- src/box/sql/sqlInt.h | 20 +- src/box/sql/vdbemem.c | 2 +- test/box-py/bootstrap.result | 66 ------ test/box/access_bin.result | 4 +- test/box/access_bin.test.lua | 4 +- test/box/access_sysview.result | 8 +- test/box/function1.result | 39 ++-- test/box/function1.test.lua | 16 +- test/sql-tap/func5.test.lua | 57 +++++- test/wal_off/func_max.result | 8 +- 24 files changed, 339 insertions(+), 240 deletions(-) create mode 100644 changelogs/unreleased/gh-6106-remove-sql-built-ins-from-_func.md -- 2.25.1