Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH v1 0/4] Introduce DECIMAL to SQL
@ 2021-08-16 15:56 Mergen Imeev via Tarantool-patches
  2021-08-16 15:57 ` [Tarantool-patches] [PATCH v1 1/4] decimal: introduce decimal_is_neg() Mergen Imeev via Tarantool-patches
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Mergen Imeev via Tarantool-patches @ 2021-08-16 15:56 UTC (permalink / raw)
  To: korablev; +Cc: tarantool-patches

After this patch-set decimal will be available in SQL. It will have defined
comparison operations, arithmetic operations, implicit and explicit casts.
However, some functions cannot work with DECIMAL for now, and it will be fixed a
bit later in patch-set that fixes SQL built-in functions. Also, for now DECIMAL
will not have literals in SQL, since it still was not decided how to implement
them.

https://github.com/tarantool/tarantool/issues/4415
https://github.com/tarantool/tarantool/tree/imeevma/gh-4415-introduce-decimal-type-in-sql

Mergen Imeev (4):
  decimal: introduce decimal_is_neg()
  sql: introduce field type decimal
  sql: introduce cast for decimal
  sql: introduce decimal to arithmetic

 extra/mkkeywordhash.c                         |   2 +-
 src/box/sql/expr.c                            |   3 +
 src/box/sql/func.c                            |   4 +
 src/box/sql/mem.c                             | 615 +++++++++++-
 src/box/sql/mem.h                             |  18 +-
 src/box/sql/parse.y                           |   1 +
 src/box/sql/sqlInt.h                          |   1 +
 src/lib/core/decimal.c                        |   6 +
 src/lib/core/decimal.h                        |   4 +
 test/sql-tap/CMakeLists.txt                   |   1 +
 test/sql-tap/decimal.c                        |  48 +
 test/sql-tap/decimal.test.lua                 | 944 ++++++++++++++++++
 test/sql-tap/engine.cfg                       |   3 +
 .../gh-5913-segfault-on-select-uuid.test.lua  |  83 --
 .../sql-tap/gh-6024-funcs-return-bin.test.lua |   8 +-
 test/unit/decimal.c                           |   7 +-
 test/unit/decimal.result                      |  10 +-
 17 files changed, 1633 insertions(+), 125 deletions(-)
 create mode 100644 test/sql-tap/decimal.c
 create mode 100755 test/sql-tap/decimal.test.lua
 delete mode 100755 test/sql-tap/gh-5913-segfault-on-select-uuid.test.lua

-- 
2.25.1


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

end of thread, other threads:[~2021-08-18 16:55 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-16 15:56 [Tarantool-patches] [PATCH v1 0/4] Introduce DECIMAL to SQL Mergen Imeev via Tarantool-patches
2021-08-16 15:57 ` [Tarantool-patches] [PATCH v1 1/4] decimal: introduce decimal_is_neg() Mergen Imeev via Tarantool-patches
2021-08-18 16:54   ` Safin Timur via Tarantool-patches
2021-08-16 15:57 ` [Tarantool-patches] [PATCH v1 2/4] sql: introduce field type decimal Mergen Imeev via Tarantool-patches
2021-08-16 19:22   ` Safin Timur via Tarantool-patches
2021-08-18 13:01     ` Mergen Imeev via Tarantool-patches
2021-08-18 16:52       ` Safin Timur via Tarantool-patches
2021-08-16 15:57 ` [Tarantool-patches] [PATCH v1 3/4] sql: introduce cast for decimal Mergen Imeev via Tarantool-patches
2021-08-16 19:34   ` Safin Timur via Tarantool-patches
2021-08-18 13:29     ` Mergen Imeev via Tarantool-patches
2021-08-18 16:53       ` Safin Timur via Tarantool-patches
2021-08-16 15:57 ` [Tarantool-patches] [PATCH v1 4/4] sql: introduce decimal to arithmetic Mergen Imeev via Tarantool-patches
2021-08-16 19:48   ` Safin Timur via Tarantool-patches
2021-08-17 12:23     ` Serge Petrenko via Tarantool-patches
2021-08-18 13:32     ` Mergen Imeev via Tarantool-patches
2021-08-18 16:53       ` Safin Timur 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