mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Simple tests added
This commit is contained in:
parent
99a2df51cb
commit
f63fe65e53
@ -1 +1,2 @@
|
||||
2
|
||||
17345439983272262203
|
||||
1
|
||||
|
@ -1,6 +1,9 @@
|
||||
SELECT cityHash64(toUUID('61f0c404-5cb3-11e7-907b-a6006ad3dba0')) AS uuid;
|
||||
DROP TABLE IF EXISTS t_uuid;
|
||||
CREATE TABLE t_uuid (x UUID) ENGINE=TinyLog;
|
||||
INSERT INTO t_uuid SELECT generateUUIDv4();
|
||||
INSERT INTO t_uuid SELECT generateUUIDv4();
|
||||
SELECT count() FROM t_uuid WHERE cityHash64(x) = cityHash64(toString(x));
|
||||
INSERT INTO t_uuid SELECT generateUUIDv4();
|
||||
INSERT INTO t_uuid SELECT generateUUIDv4();
|
||||
SELECT (SELECT count() FROM t_uuid WHERE cityHash64(reinterpretAsString(x)) = cityHash64(x) and length(reinterpretAsString(x)) = 16) = (SELECT count() AS c2 FROM t_uuid WHERE length(reinterpretAsString(x)) = 16);
|
||||
DROP TABLE IF EXISTS t_uuid;
|
||||
|
@ -1,6 +1,9 @@
|
||||
1
|
||||
1
|
||||
1
|
||||
2
|
||||
2
|
||||
2
|
||||
7948708622144234705
|
||||
8929217225161595187
|
||||
5200826623470796493
|
||||
16603170516127487987
|
||||
10474166755000741993
|
||||
13955506427180385733
|
||||
15701171052063596312
|
||||
12183501908379561231
|
||||
5781832733050385252
|
||||
|
@ -1,6 +1,6 @@
|
||||
SELECT cityHash64(toDecimal32(32, 2)) = cityHash64(toString(toDecimal32(32, 2)));
|
||||
SELECT cityHash64(toDecimal64(64, 5)) = cityHash64(toString(toDecimal64(64, 5)));
|
||||
SELECT cityHash64(toDecimal128(128, 24)) = cityHash64(toString(toDecimal128(128, 24)));
|
||||
SELECT count() FROM numbers(200, 2) WHERE cityHash64(toDecimal32(number, 4)) = cityHash64(toString(toDecimal32(number, 4)));
|
||||
SELECT count() FROM numbers(2301, 2) WHERE cityHash64(toDecimal64(number, 6)) = cityHash64(toString(toDecimal64(number, 6)));
|
||||
SELECT count() FROM numbers(2143, 2) WHERE cityHash64(toDecimal128(number, 10)) = cityHash64(toString(toDecimal128(number, 10)));
|
||||
SELECT cityHash64(toDecimal32(32, 2));
|
||||
SELECT cityHash64(toDecimal64(64, 5));
|
||||
SELECT cityHash64(toDecimal128(128, 24));
|
||||
SELECT cityHash64(toDecimal32(number, 3)) from numbers(198, 2);
|
||||
SELECT cityHash64(toDecimal64(number, 9)) from numbers(297, 2);
|
||||
SELECT cityHash64(toDecimal128(number, 16)) from numbers(123, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user