tarantool / tarantool/doc

[2pt] uuid comparison rules

Open
#1,681 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature reference server
Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

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 https://github.com/tarantool/tarantool/commit/e27745ad54c124e5f7a33eaaecec62ef0e9c58d1.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Tarantool documentation entry point for uuid.fromstr and UUID operations; the issue does not identify a root document or file. Use the comparison examples and the referenced commit e27745ad54c124e5f7a33eaaecec62ef0e9c58d1 to document the supported UUID and string comparison rules, with examples matching the stated results.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.