mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 04:12:19 +00:00
16 lines
369 B
MySQL
16 lines
369 B
MySQL
|
--https://github.com/ClickHouse/ClickHouse/issues/57086
|
||
|
SELECT
|
||
|
'limit w/ GROUP BY',
|
||
|
count(NULL),
|
||
|
number
|
||
|
FROM remote('127.{1,2}', view(
|
||
|
SELECT intDiv(number, 2147483647) AS number
|
||
|
FROM numbers(10)
|
||
|
))
|
||
|
GROUP BY number
|
||
|
WITH ROLLUP
|
||
|
ORDER BY
|
||
|
count() ASC,
|
||
|
number DESC NULLS LAST
|
||
|
SETTINGS limit = 2, allow_experimental_analyzer = 1;
|