Bad data if incomplete tuple
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tarantool |
Fix Released
|
High
|
Kostja Osipov |
Bug Description
I have the following namespace configuration:
namespace[
namespace[
namespace[
namespace[
namespace[
namespace[
namespace[
namespace[
namespace[
Since this namespace has 2 keys, the minimal cardinality for an acceptable tuple
must be 2. However, Tarantool/Box accepts incomplete tuples:
tarantool> insert into t0 values ('Britney')
Insert OK, 1 row affected
What is worse, these incomplete tuples always match when the search is made on the second key:
tarantool> select * from t0 where k1='Anything'
Found 1 tuple:
['Britney']
tarantool> insert into t0 values ('Stephanie')
Insert OK, 1 row affected
tarantool> select * from t0 where k1='Anything'
Found 2 tuples:
['Britney']
['Stephanie']
Suggested fix:
- do not accept incomplete tuples. Should we still have a namespace option that allows incomplete tuples, they should not match the search pattern on the second key.
Changed in tarantool: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 1.3.5 |
description: | updated |
Changed in tarantool: | |
status: | Confirmed → Fix Committed |
assignee: | nobody → Kostja Osipov (kostja) |
Changed in tarantool: | |
status: | Fix Committed → Fix Released |
Whether or not the second namespace is unique does not matter, the result is the same.