Added test for old issue #1788

This commit is contained in:
Alexey Milovidov 2018-10-17 08:50:40 +03:00
parent de2d081f8b
commit 72e4963248
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1
1 1

View File

@ -0,0 +1,36 @@
CREATE TEMPORARY TABLE test
(
x Int32
);
INSERT INTO test VALUES (1);
SELECT x
FROM
(
SELECT
x,
1
FROM test
ALL INNER JOIN
(
SELECT
count(),
1
FROM test
) USING (1)
LIMIT 10
);
SELECT
x,
1
FROM test
ALL INNER JOIN
(
SELECT
count(),
1
FROM test
) USING (1)
LIMIT 10;