Skip to content

[2pt] uuid comparison rules #1681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TarantoolBot opened this issue Dec 7, 2020 · 0 comments
Open

[2pt] uuid comparison rules #1681

TarantoolBot opened this issue Dec 7, 2020 · 0 comments
Labels
feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Dec 7, 2020

uuid comparison rules

Product: Tarantool
Since: 2.7.1
Audience/target: Lua devs
Root document:
SME: @olegrok
Peer reviewer: @ documentarian name

Details

Currently comparison between uuid values is supported.

Example:

u1 = uuid.fromstr('aaaaaaaa-aaaa-4000-b000-000000000001')
u2 = uuid.fromstr('bbbbbbbb-bbbb-4000-b000-000000000001')

u1 > u2  -- false
u1 >= u2 -- false
u1 <= u2 -- true
u1 < u2  -- true

Also it's possible to compare uuid values with its string
representations:

u1_str = 'aaaaaaaa-aaaa-4000-b000-000000000001'
u1 = uuid.fromstr(u1_str)
u2_str = 'bbbbbbbb-bbbb-4000-b000-000000000001'

u1 == u1_str -- true
u1 == u2_str -- false

u1 >= u1_str -- true
u1 < u2_str  -- true

Requested by @olegrok in tarantool/tarantool@e27745a.

@Onvember Onvember changed the title uuid comparison rules [8pt] uuid comparison rules Dec 16, 2020
@Onvember Onvember added feature A new functionality reference [location] Tarantool manual, Reference part S (small) labels Feb 11, 2021
@NickVolynkin NickVolynkin changed the title [8pt] uuid comparison rules [2pt] uuid comparison rules Mar 5, 2021
@NickVolynkin NickVolynkin added server [area] Task relates to Tarantool's server (core) functionality and removed S (small) labels Mar 5, 2021
@veod32 veod32 added 2.7 and removed 2.7 labels Mar 18, 2021
@veod32 veod32 added this to the Tarantool releases of Dec 2020 milestone Mar 22, 2021
@TarantoolBot TarantoolBot removed the 2sp label Jun 7, 2023
@veod32 veod32 removed this from the Tarantool Releases: 2020 Q4 milestone Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

No branches or pull requests

5 participants