[Tarantool-patches] [PATCH v2 0/5] Prepare for static arguments type check

imeevma at tarantool.org imeevma at tarantool.org
Wed Aug 18 17:34:51 MSK 2021


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



More information about the Tarantool-patches mailing list