Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v2 0/6] Remove SQL built-in functions from _func
@ 2021-08-09  7:18 Mergen Imeev via Tarantool-patches
  2021-08-09  7:18 ` [Tarantool-patches] [PATCH v2 1/6] sql: introduce sql_func_flags() Mergen Imeev via Tarantool-patches
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Mergen Imeev via Tarantool-patches @ 2021-08-09  7:18 UTC (permalink / raw)
  To: kyukhin; +Cc: tarantool-patches

This patch-set removes SQL built-in functions from _func and prohibits functions
with SQL_BUILTIN language to be decribed in _func system space.

https://github.com/tarantool/tarantool/issues/6106
https://github.com/tarantool/tarantool/tree/imeevma/gh-6106-remove-sql-builtins-from-_func

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/func_def.c                            |   8 -
 src/box/lua/upgrade.lua                       |  16 +-
 src/box/schema.cc                             |   3 +
 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 +-
 25 files changed, 338 insertions(+), 248 deletions(-)
 create mode 100644 changelogs/unreleased/gh-6106-remove-sql-built-ins-from-_func.md

-- 
2.25.1


^ permalink raw reply	[flat|nested] 13+ messages in thread
* [Tarantool-patches] [PATCH v2 0/6] Remove SQL built-in functions from _func
@ 2021-08-04 12:58 Mergen Imeev via Tarantool-patches
  2021-08-04 12:58 ` [Tarantool-patches] [PATCH v2 4/6] alter: parse data dictionary version Mergen Imeev via Tarantool-patches
  0 siblings, 1 reply; 13+ messages in thread
From: Mergen Imeev via Tarantool-patches @ 2021-08-04 12:58 UTC (permalink / raw)
  To: v.shpilevoy; +Cc: 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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-08-10 13:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09  7:18 [Tarantool-patches] [PATCH v2 0/6] Remove SQL built-in functions from _func Mergen Imeev via Tarantool-patches
2021-08-09  7:18 ` [Tarantool-patches] [PATCH v2 1/6] sql: introduce sql_func_flags() Mergen Imeev via Tarantool-patches
2021-08-09  7:18 ` [Tarantool-patches] [PATCH v2 2/6] sql: introduce sql_func_find() Mergen Imeev via Tarantool-patches
2021-08-09  7:18 ` [Tarantool-patches] [PATCH v2 3/6] sql: remove SQL built-in functions from _func Mergen Imeev via Tarantool-patches
2021-08-09  7:19 ` [Tarantool-patches] [PATCH v2 4/6] alter: parse data dictionary version Mergen Imeev via Tarantool-patches
2021-08-09  7:19 ` [Tarantool-patches] [PATCH v2 5/6] alter: disallow creation of SQL built-in function Mergen Imeev via Tarantool-patches
2021-08-09  7:19 ` [Tarantool-patches] [PATCH v2 6/6] sql: remove unnecessary function initialization Mergen Imeev via Tarantool-patches
2021-08-10  7:14 ` [Tarantool-patches] [PATCH v2 0/6] Remove SQL built-in functions from _func Kirill Yukhin via Tarantool-patches
2021-08-10 12:52   ` Vitaliia Ioffe via Tarantool-patches
2021-08-10 13:12 ` Kirill Yukhin via Tarantool-patches
  -- strict thread matches above, loose matches on Subject: below --
2021-08-04 12:58 Mergen Imeev via Tarantool-patches
2021-08-04 12:58 ` [Tarantool-patches] [PATCH v2 4/6] alter: parse data dictionary version Mergen Imeev via Tarantool-patches
2021-08-05 22:17   ` Vladislav Shpilevoy via Tarantool-patches
2021-08-06 19:47     ` Mergen Imeev via Tarantool-patches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox