sql: Allow NULL values in columns.
* If `NULL` is allowed for column - demote column affinity to `scalar` in Tarantool. * Set `unique` Tarantool's property to false if any of index columns may contain `NULL`. * If column may not contain NULL then use OP_Rewind/OP_last to fetch first(last) indexed element during searchg for MAX/MIN. * Add tests for MIN() and MAX(), when value is indexed. sql: Fix field extraction via field_map Fix the crash when encountered a tuple with outdated field_map.
Showing
- src/box/sql.c 30 additions, 8 deletionssrc/box/sql.c
- src/box/sql/wherecode.c 16 additions, 3 deletionssrc/box/sql/wherecode.c
- test/box/sql-max-on-index.result 59 additions, 0 deletionstest/box/sql-max-on-index.result
- test/box/sql-max-on-index.test.lua 36 additions, 0 deletionstest/box/sql-max-on-index.test.lua
- test/box/sql-min-on-index.result 59 additions, 0 deletionstest/box/sql-min-on-index.result
Loading
Please register or sign in to comment