[Tarantool-patches] [PATCH v2 0/4] Introduce custom aggregate functions

imeevma at tarantool.org imeevma at tarantool.org
Thu Feb 10 12:14:09 MSK 2022


This patch-set introduces user-defined aggregate functions to SQL.

Changes in v2:
 - Patch-set was reworked due to new design.

https://github.com/tarantool/tarantool/issues/2579
https://github.com/tarantool/tarantool/tree/imeevma/gh-2579-custom-aggregate-functions

Mergen Imeev (4):
  sql: fix COUNT() optimization conditions
  sql: drop unnecessary P2 register for OP_AggFinal
  sql: introduce custom aggregate functions
  sql: introduce FINALIZE for custom aggregate

 .../gh-2579-introduce-custom-aggregates.md    |   3 +
 src/box/alter.cc                              |  13 +
 src/box/lua/schema.lua                        |   2 +-
 src/box/sql/expr.c                            |  17 +-
 src/box/sql/func.c                            |  31 ++-
 src/box/sql/resolve.c                         |  12 +
 src/box/sql/select.c                          |  42 +++-
 src/box/sql/sqlInt.h                          |   6 +-
 src/box/sql/vdbe.c                            |  17 +-
 test/sql-tap/CMakeLists.txt                   |   2 +
 test/sql-tap/gh-2579-custom-aggregate.c       |  28 +++
 .../sql-tap/gh-2579-custom-aggregate.test.lua | 225 ++++++++++++++++++
 12 files changed, 361 insertions(+), 37 deletions(-)
 create mode 100644 changelogs/unreleased/gh-2579-introduce-custom-aggregates.md
 create mode 100644 test/sql-tap/gh-2579-custom-aggregate.c
 create mode 100755 test/sql-tap/gh-2579-custom-aggregate.test.lua

-- 
2.25.1



More information about the Tarantool-patches mailing list