Skip to content

Commit eb9285b

Browse files
committed
Replace test cases with all 6823 queries from ClickHouse stateless tests
Replaced custom test cases with queries directly from the ClickHouse repository's tests/queries/0_stateless folder. Each test directory is now named to match the original ClickHouse test file (e.g., 00007_array). All tests are marked as todo until parser support is implemented.
1 parent 9725070 commit eb9285b

14,622 files changed

Lines changed: 234198 additions & 4850 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Tags: stateful
2+
SELECT count() FROM test.hits
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Tags: stateful
2+
SELECT sum(Sign) FROM test.visits
File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SET send_logs_level = 'fatal';
2+
3+
SELECT * FROM system.numbers LIMIT 3;
4+
SELECT sys_num.number FROM system.numbers AS sys_num WHERE number > 2 LIMIT 2;
5+
SELECT number FROM system.numbers WHERE number >= 5 LIMIT 2;
6+
SELECT * FROM system.numbers WHERE number == 7 LIMIT 1;
7+
SELECT number AS n FROM system.numbers WHERE number IN(8, 9) LIMIT 2;
8+
select number from system.numbers limit 0;
9+
select x from system.numbers limit 1; -- { serverError UNKNOWN_IDENTIFIER }
10+
SELECT x, number FROM system.numbers LIMIT 1; -- { serverError UNKNOWN_IDENTIFIER }
11+
SELECT * FROM system.number LIMIT 1; -- { serverError UNKNOWN_TABLE }
12+
SELECT * FROM system LIMIT 1; -- { serverError UNKNOWN_TABLE }
13+
SELECT * FROM numbers LIMIT 1; -- { serverError UNKNOWN_TABLE }
14+
SELECT sys.number FROM system.numbers AS sys_num LIMIT 1; -- { serverError UNKNOWN_IDENTIFIER }
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SELECT number FROM system.numbers WHERE reinterpretAsString(number) = 'Ё' LIMIT 1

0 commit comments

Comments
 (0)