mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
9 lines
366 B
SQL
9 lines
366 B
SQL
-- Tests function generateUUIDv7
|
|
|
|
SELECT toTypeName(generateUUIDv7());
|
|
SELECT substring(hex(generateUUIDv7()), 13, 1); -- check version bits
|
|
SELECT bitAnd(bitShiftRight(toUInt128(generateUUIDv7()), 62), 3); -- check variant bits
|
|
SELECT generateUUIDv7(1) = generateUUIDv7(2);
|
|
SELECT generateUUIDv7() = generateUUIDv7(1);
|
|
SELECT generateUUIDv7(1) = generateUUIDv7(1);
|