[tarantool-patches] [PATCH v1 0/4] sql: replace 32 bit column mask

Kirill Shcherbatov kshcherbatov at tarantool.org
Fri Feb 8 15:52:24 MSK 2019


Column mask in Tarantool is not just 32 bits greater, but also it
is smarter. When a column with number > 63 is added to the mask,
the only last bit (64th) is set indicating the overflow.
SQLite mask in such a case just resets the whole mask in -1.

Reworked sqlite code to use Tarantool mask helpers everywhere.

Branch: http://github.com/tarantool/tarantool/tree/kshch/gh-3571-sql-column-mask-64
Issue: https://github.com/tarantool/tarantool/issues/3571

Kirill Shcherbatov (4):
  box: introduce new helpers in column_mask.h
  sql: use 64b bitmasks instead of 32b where possible
  sql: got rid of redundant MASKBIT32 definition
  sql: got rid of redundant bitmask helpers

 src/box/alter.cc        |  10 +---
 src/box/column_mask.h   |  39 +++++++++++---
 src/box/sql/delete.c    |   8 ++-
 src/box/sql/expr.c      |  53 ++++++++++---------
 src/box/sql/resolve.c   |  31 +++--------
 src/box/sql/sqliteInt.h |  71 +++++++++++---------------
 src/box/sql/trigger.c   |  14 ++---
 src/box/sql/update.c    |  21 ++++----
 src/box/sql/vdbeaux.c   |   7 ++-
 src/box/sql/where.c     | 110 ++++++++++++++++++----------------------
 src/box/sql/whereInt.h  |   3 +-
 11 files changed, 175 insertions(+), 192 deletions(-)

-- 
2.20.1





More information about the Tarantool-patches mailing list