Merge pull request #58249 from Algunenano/i57086

[Analyzer] Add test for #57086
This commit is contained in:
Alexey Milovidov 2023-12-28 00:20:22 +01:00 committed by GitHub
commit 79fa5b7bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,2 @@
limit w/ GROUP BY 0 0
limit w/ GROUP BY 0 0

View File

@ -0,0 +1,15 @@
--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;