mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 13:02:00 +00:00
Add missing tests
This commit is contained in:
parent
2c75a51d4f
commit
1eb44c6837
14
dbms/tests/queries/0_stateless/00612_count.reference
Normal file
14
dbms/tests/queries/0_stateless/00612_count.reference
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
1234567
|
||||||
|
2469134
|
||||||
|
2469134
|
||||||
|
1234567
|
||||||
|
|
||||||
|
1234567
|
||||||
|
1234567
|
||||||
|
1234567
|
||||||
|
1234567
|
||||||
|
1234567
|
||||||
|
1234567
|
||||||
|
1234567
|
||||||
|
1234568
|
||||||
|
1234567
|
18
dbms/tests/queries/0_stateless/00612_count.sql
Normal file
18
dbms/tests/queries/0_stateless/00612_count.sql
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
DROP TABLE IF EXISTS test.count;
|
||||||
|
|
||||||
|
CREATE TABLE test.count (x UInt64) ENGINE = MergeTree ORDER BY tuple();
|
||||||
|
INSERT INTO test.count SELECT * FROM numbers(1234567);
|
||||||
|
|
||||||
|
SELECT count() FROM test.count;
|
||||||
|
SELECT count() * 2 FROM test.count;
|
||||||
|
SELECT count() FROM (SELECT * FROM test.count UNION ALL SELECT * FROM test.count);
|
||||||
|
SELECT count() FROM test.count WITH TOTALS;
|
||||||
|
SELECT arrayJoin([count(), count()]) FROM test.count;
|
||||||
|
SELECT arrayJoin([count(), count()]) FROM test.count LIMIT 1;
|
||||||
|
SELECT arrayJoin([count(), count()]) FROM test.count LIMIT 1, 1;
|
||||||
|
SELECT arrayJoin([count(), count()]) AS x FROM test.count LIMIT 1 BY x;
|
||||||
|
SELECT arrayJoin([count(), count() + 1]) AS x FROM test.count LIMIT 1 BY x;
|
||||||
|
SELECT count() FROM test.count HAVING count() = 1234567;
|
||||||
|
SELECT count() FROM test.count HAVING count() != 1234567;
|
||||||
|
|
||||||
|
DROP TABLE test.count;
|
@ -0,0 +1,2 @@
|
|||||||
|
2469134
|
||||||
|
1234567
|
9
dbms/tests/queries/0_stateless/00612_shard_count.sql
Normal file
9
dbms/tests/queries/0_stateless/00612_shard_count.sql
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
DROP TABLE IF EXISTS test.count;
|
||||||
|
|
||||||
|
CREATE TABLE test.count (x UInt64) ENGINE = MergeTree ORDER BY tuple();
|
||||||
|
INSERT INTO test.count SELECT * FROM numbers(1234567);
|
||||||
|
|
||||||
|
SELECT count() FROM remote('127.0.0.{1,2}', test.count);
|
||||||
|
SELECT count() / 2 FROM remote('127.0.0.{1,2}', test.count);
|
||||||
|
|
||||||
|
DROP TABLE test.count;
|
Loading…
Reference in New Issue
Block a user