[patches] [PATCH 1/1] index: make index:min/max return a tuple with correct key
Vladimir Davydov
vdavydov.dev at gmail.com
Sat Feb 17 11:53:46 MSK 2018
On Fri, Feb 16, 2018 at 08:44:04PM +0300, Vladislav Shpilevoy wrote:
> Now index:min/max returns a tuple be select(LE, limit=1), but this
> request does not guarantee, that it returns a tuple which matches
> a key, specified in min/max() args. Check the key.
This is a documented behavior:
"""
Return:
the tuple for the last key in the index. If optional key-value is
supplied, returns the last key which is less than or equal to
key-value.
"""
https://tarantool.org/en/doc/1.7/book/box/box_index.html?highlight=max#lua-function.index_object.max
I'm afraid "fixing" it may break existing users.
>
> Closes #3167
>
> Signed-off-by: Vladislav Shpilevoy <v.shpilevoy at tarantool.org>
We don't sign-off patches. Please fix your git configuration.
More information about the Tarantool-patches
mailing list