** Changed in: tarantool
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1172093
Title:
Still no interoperability betwen 64 bit indexes and 32 bit keys
Status in Tarantool - an efficient in-memory data store:
Fix Released
Bug description:
When I have a 64 bit index type, and using a 32 bit key for search, I
get an error.
This is pain in the butt especially since the driver is unaware of the
schema, and can't properly pack an integer without this knowledge.
For example, try to create a space with 64-bit primary key (TREE or HASH) and
search it
using a 32-bit key:
space[27].enabled: "true"
space[27].cardinality: "-1"
space[27].estimated_rows: "0"
space[27].index[0].type: "TREE"
space[27].index[0].unique: "true"
space[27].index[0].key_field[0].fieldno: "0"
space[27].index[0].key_field[0].type: "NUM64"
space[28].enabled: "true"
space[28].cardinality: "-1"
space[28].estimated_rows: "0"
space[28].index[0].type: "HASH"
space[28].index[0].unique: "true"
space[28].index[0].key_field[0].fieldno: "0"
space[28].index[0].key_field[0].type: "NUM64"
...
localhost> insert into t27 values (1L)
Insert OK, 1 rows affected
localhost> insert into t28 values (1L)
Insert OK, 1 rows affected
localhost> select * from t0 where k0=1L
Select OK, 0 rows affected
localhost> select * from t27 where k0=1L
Select OK, 1 rows affected
[1]
localhost> select * from t27 where k0=1
Select ERROR, Illegal parameters, key is not u64 (ER_ILLEGAL_PARAMS)
localhost> select * from t28 where k0=1
Select ERROR, Supplied key field type does not match index type: expected u64
(ER_KEY_FIELD_TYPE)
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1172093/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~tarantool-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~tarantool-developers
More help : https://help.launchpad.net/ListHelp