Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v2 0/4] Introduce custom aggregate function
@ 2022-02-01 13:37 Mergen Imeev via Tarantool-patches
  2022-02-01 13:37 ` [Tarantool-patches] [PATCH v2 1/4] sql: fix COUNT() optimization conditions Mergen Imeev via Tarantool-patches
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mergen Imeev via Tarantool-patches @ 2022-02-01 13:37 UTC (permalink / raw)
  To: v.shpilevoy; +Cc: tarantool-patches

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                            |  27 ++-
 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 | 224 ++++++++++++++++++
 12 files changed, 356 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


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Tarantool-patches] [PATCH v2 0/4] Introduce custom aggregate functions
@ 2022-02-10  9:14 Mergen Imeev via Tarantool-patches
  2022-02-10  9:14 ` [Tarantool-patches] [PATCH v2 1/4] sql: fix COUNT() optimization conditions Mergen Imeev via Tarantool-patches
  0 siblings, 1 reply; 9+ messages in thread
From: Mergen Imeev via Tarantool-patches @ 2022-02-10  9:14 UTC (permalink / raw)
  To: kyukhin; +Cc: tarantool-patches

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


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

end of thread, other threads:[~2022-02-10  9:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 13:37 [Tarantool-patches] [PATCH v2 0/4] Introduce custom aggregate function Mergen Imeev via Tarantool-patches
2022-02-01 13:37 ` [Tarantool-patches] [PATCH v2 1/4] sql: fix COUNT() optimization conditions Mergen Imeev via Tarantool-patches
2022-02-01 13:37 ` [Tarantool-patches] [PATCH v2 2/4] sql: drop unnecessary P2 register for OP_AggFinal Mergen Imeev via Tarantool-patches
2022-02-01 13:37 ` [Tarantool-patches] [PATCH v2 3/4] sql: introduce custom aggregate functions Mergen Imeev via Tarantool-patches
2022-02-03 23:29   ` Vladislav Shpilevoy via Tarantool-patches
2022-02-01 13:37 ` [Tarantool-patches] [PATCH v2 4/4] sql: introduce FINALIZE for custom aggregate Mergen Imeev via Tarantool-patches
2022-02-03 23:30   ` Vladislav Shpilevoy via Tarantool-patches
2022-02-10  9:21     ` Mergen Imeev via Tarantool-patches
2022-02-10  9:14 [Tarantool-patches] [PATCH v2 0/4] Introduce custom aggregate functions Mergen Imeev via Tarantool-patches
2022-02-10  9:14 ` [Tarantool-patches] [PATCH v2 1/4] sql: fix COUNT() optimization conditions 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