2022-05-18 22:37:13 +00:00
|
|
|
SET allow_experimental_hash_functions = 1;
|
|
|
|
|
2022-05-07 01:25:20 +00:00
|
|
|
select number, hashid(number) from system.numbers limit 5;
|
2022-05-11 17:19:05 +00:00
|
|
|
select number, hashid(number, 's3cr3t', 16, 'abcdefghijklmnop') from system.numbers limit 5;
|
|
|
|
select hashid(1234567890123456, 's3cr3t');
|
2022-08-08 16:25:34 +00:00
|
|
|
select hashid(1234567890123456, 's3cr3t2');
|
2022-06-01 12:41:36 +00:00
|
|
|
|
|
|
|
SELECT hashid(1, hashid(2));
|
2022-08-08 16:25:34 +00:00
|
|
|
SELECT hashid(1, 'k5');
|
|
|
|
SELECT hashid(1, 'k5_othersalt');
|
|
|
|
|
|
|
|
-- https://github.com/ClickHouse/ClickHouse/issues/39672
|
|
|
|
SELECT
|
|
|
|
JSONExtractRaw(257, NULL),
|
|
|
|
hashid(1024, if(rand() % 10, 'truetruetruetrue', NULL), 's3\0r3t'); -- {serverError 43}
|