Skip to content

Commit 84727e9

Browse files
committed
Add test for #57086
1 parent 745d9bb commit 84727e9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
limit w/ GROUP BY 0 0
2+
limit w/ GROUP BY 0 0
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--https://github.com/ClickHouse/ClickHouse/issues/57086
2+
SELECT
3+
'limit w/ GROUP BY',
4+
count(NULL),
5+
number
6+
FROM remote('127.{1,2}', view(
7+
SELECT intDiv(number, 2147483647) AS number
8+
FROM numbers(10)
9+
))
10+
GROUP BY number
11+
WITH ROLLUP
12+
ORDER BY
13+
count() ASC,
14+
number DESC NULLS LAST
15+
SETTINGS limit = 2, allow_experimental_analyzer = 1;

0 commit comments

Comments
 (0)