Skip to content

Commit 509093d

Browse files
committed
Add a test for #92533
1 parent d493b3e commit 509093d

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
2
3+
4+
2
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SET enable_analyzer = 1;
2+
3+
SELECT DISTINCT 2 FROM (SELECT 2 AS b, 1 AS a GROUP BY 1, toUInt256(1), 1, and(and(2, rand(materialize(toLowCardinality(2))), assumeNotNull(isNull(isNullable(2))) AND (and(rand(isZeroOrNull(2)), 2, *) AND 1) AND (assumeNotNull(2) AND rand(2)) AND (* AND isNotNull(toLowCardinality(2))), (* AND rand(isNullable(2))) AND isNotNull(2), isNullable(materialize(1)), *), 2, rand(toLowCardinality(2))) WITH CUBE WITH TOTALS) AS foo ANY LEFT JOIN (SELECT * AND ((isNullable(isZeroOrNull(toNullable(1))) AND *) AND rand(2)), 2 AS b, 1 AS a) AS bar ON and(foo.b = bar.b, foo.a = bar.b) WHERE (and(*, toNullable(2), * AND * AND isNotNull(2) AND * AND and(*) AND isNotNull(1), rand(2)) AND *) AND (1 AND assumeNotNull(2)) AND assumeNotNull(isNull(2)) AND (* AND (* AND isZeroOrNull(2)) AND isNull(toNullable(2))) ORDER BY ALL ASC NULLS FIRST;
4+
5+
SELECT DISTINCT 2
6+
FROM
7+
(SELECT 2 AS b, 1 AS a GROUP BY 1, toUInt256(1), 1 WITH CUBE WITH TOTALS) AS foo
8+
ANY LEFT JOIN
9+
(SELECT 2 AS b, 1 AS a) AS bar
10+
ON and(foo.b = bar.b, foo.a = bar.b)
11+
WHERE 0;

0 commit comments

Comments
 (0)