sql: introduce field type ARRAY
This patch introduces ARRAY to SQL. After this patch, all SQL operations and built-in functions should work correctly with ARRAY values. However, there is currently no way to create ARRAY values using only SQL tools. Part of #4762 @TarantoolBot document Title: Field type ARRAY in SQL Properties of type ARRAY in SQL: 1) a value of type ARRAY can be implicitly and explicitly cast only to ANY; 2) only a value of type ANY with primitive type ARRAY can be explicitly cast to ARRAY; 3) a value of any other type cannot be implicitly cast to ARRAY; 4) a value of type ARRAY cannot participate in arithmetic, bitwise, comparison, and concatination operations.
Showing
- changelogs/unreleased/gh-4762-introduce-array-to-sql.md 3 additions, 0 deletionschangelogs/unreleased/gh-4762-introduce-array-to-sql.md
- extra/mkkeywordhash.c 1 addition, 0 deletionsextra/mkkeywordhash.c
- src/box/sql/func.c 13 additions, 1 deletionsrc/box/sql/func.c
- src/box/sql/mem.c 69 additions, 43 deletionssrc/box/sql/mem.c
- src/box/sql/mem.h 4 additions, 0 deletionssrc/box/sql/mem.h
- src/box/sql/parse.y 1 addition, 0 deletionssrc/box/sql/parse.y
- test/sql-tap/array.test.lua 985 additions, 0 deletionstest/sql-tap/array.test.lua
- test/sql-tap/lua/sqltester.lua 1 addition, 3 deletionstest/sql-tap/lua/sqltester.lua
Loading
Please register or sign in to comment