Public bug reported:
We use the same function "check_key_parts" for all checks related to keys.
This produces a confusing error message when a key is partial, but in the
context where partial keys are allowed.
For example, box.select(0) when the primary key is TREE, returns all keys.
The same on a HASH primary key returns error "Partial key in exact match"
(ER_EXACT_MATCH).
If partial_key_allowed is taken from index traits, we should say
something like:
Hash indexes don't support search by a partially specified key
This would be less confusing.
Not fixing it right away since there is work in progress in this part of
the code.
** Affects: tarantool
Importance: Medium
Assignee: Aleksey Demakov (ademakov)
Status: Confirmed
** Changed in: tarantool
Assignee: (unassigned) => Aleksey Demakov (ademakov)
** Changed in: tarantool
Milestone: None => 1.4.8
** Changed in: tarantool
Importance: Undecided => Medium
** Changed in: tarantool
Status: New => Confirmed
--
You received this bug notification because you are a member of Tarantool
Development Team, which is subscribed to tarantool.
https://bugs.launchpad.net/bugs/1032590
Title:
Confusing error message when partial key in HASH
Status in Tarantool - an efficient in-memory data store:
Confirmed
Bug description:
We use the same function "check_key_parts" for all checks related to keys.
This produces a confusing error message when a key is partial, but in the
context where partial keys are allowed.
For example, box.select(0) when the primary key is TREE, returns all keys.
The same on a HASH primary key returns error "Partial key in exact match"
(ER_EXACT_MATCH).
If partial_key_allowed is taken from index traits, we should say
something like:
Hash indexes don't support search by a partially specified key
This would be less confusing.
Not fixing it right away since there is work in progress in this part
of the code.
To manage notifications about this bug go to:
https://bugs.launchpad.net/tarantool/+bug/1032590/+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