2022-07-28 19:12:00 +00:00
|
|
|
SELECT 'arrays';
|
|
|
|
|
2022-04-29 18:48:19 +00:00
|
|
|
SELECT cityHash64([(1, 'a'), (2, 'b')]);
|
|
|
|
SELECT cityHash64([(1, 'c'), (2, 'b')]);
|
|
|
|
SELECT sipHash64([(1, 'a'), (2, 'b')]);
|
|
|
|
SELECT murmurHash2_64([(1, 'a'), (2, 'b'), (3, 'c')]);
|
|
|
|
|
|
|
|
SELECT cityHash64([(1, [(1, (3, 4, [(5, 6), (7, 8)]))]), (2, [])] AS c), toTypeName(c);
|
2022-07-28 19:12:00 +00:00
|
|
|
|
|
|
|
SELECT cityHash64(materialize([(1, 'a'), (2, 'b')]));
|
|
|
|
SELECT cityHash64(materialize([(1, 'c'), (2, 'b')]));
|
|
|
|
SELECT sipHash64(materialize([(1, 'a'), (2, 'b')]));
|
|
|
|
SELECT murmurHash2_64(materialize([(1, 'a'), (2, 'b'), (3, 'c')]));
|
|
|
|
|
|
|
|
SELECT 'maps';
|
|
|
|
|
|
|
|
SELECT cityHash64(map(1, 'a', 2, 'b'));
|
|
|
|
SELECT cityHash64(map(1, 'c', 2, 'b'));
|
|
|
|
SELECT sipHash64(map(1, 'a', 2, 'b'));
|
|
|
|
SELECT murmurHash2_64(map(1, 'a', 2, 'b', 3, 'c'));
|
|
|
|
|
|
|
|
SELECT cityHash64(materialize(map(1, 'a', 2, 'b')));
|
|
|
|
SELECT cityHash64(materialize(map(1, 'c', 2, 'b')));
|
|
|
|
SELECT sipHash64(materialize(map(1, 'a', 2, 'b')));
|
|
|
|
SELECT murmurHash2_64(materialize(map(1, 'a', 2, 'b', 3, 'c')));
|