mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
26 lines
926 B
SQL
26 lines
926 B
SQL
SELECT 'arrays';
|
|
|
|
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);
|
|
|
|
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')));
|