Merge pull request #52950 from ClickHouse/fuzz-remove-redundant-sorting

Try to fix assert in remove redundant sorting
This commit is contained in:
Igor Nikonov 2023-08-05 01:00:44 +02:00 committed by GitHub
commit e528eab7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,3 @@
\N
\N

View File

@ -0,0 +1,5 @@
DROP TABLE IF EXISTS numbers500k;
CREATE TABLE numbers500k (`number` UInt32) ENGINE = MergeTree() ORDER BY tuple();
INSERT INTO numbers500k SELECT number FROM system.numbers LIMIT 500000;
SELECT intDiv(number, NULL) AS k FROM (SELECT * FROM remote('127.0.0.{2,3}', currentDatabase(), numbers500k) PREWHERE 31 WHERE 65537 > 0 ORDER BY number DESC NULLS FIRST) GROUP BY GROUPING SETS ((k)) WITH TOTALS ORDER BY k ASC NULLS LAST LIMIT 2147483648;
DROP TABLE IF EXISTS numbers500k;