mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
add test for limit with fill
This commit is contained in:
parent
1e1d4eb7c1
commit
5470db34e7
@ -0,0 +1,87 @@
|
|||||||
|
1
|
||||||
|
1
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
3
|
||||||
|
3
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
3
|
||||||
|
3
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
*
|
||||||
|
1
|
||||||
|
1
|
||||||
|
2
|
||||||
|
2
|
||||||
|
2
|
||||||
|
3
|
||||||
|
3
|
||||||
|
*
|
46
dbms/tests/queries/0_stateless/00996_limit_with_ties.sql
Normal file
46
dbms/tests/queries/0_stateless/00996_limit_with_ties.sql
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
DROP TABLE IF EXISTS ties;
|
||||||
|
CREATE TABLE ties (a Int) ENGINE = Memory;
|
||||||
|
|
||||||
|
INSERT INTO ties VALUES (1), (1), (2), (2), (2), (3), (3);
|
||||||
|
|
||||||
|
SELECT a FROM ties order by a limit 1 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 3 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 5 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
|
||||||
|
SET max_block_size = 2;
|
||||||
|
SELECT a FROM ties order by a limit 1 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 2 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 3 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 4 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 6 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
|
||||||
|
SET max_block_size = 3;
|
||||||
|
SELECT a FROM ties order by a limit 1 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 2 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 3 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 4 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 6 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
|
||||||
|
|
||||||
|
SET max_block_size = 1;
|
||||||
|
SELECT a FROM ties order by a limit 3 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 5 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
SELECT a FROM ties order by a limit 6 with ties;
|
||||||
|
SELECT '*';
|
||||||
|
|
||||||
|
DROP TABLE ties;
|
Loading…
Reference in New Issue
Block a user