Add a test for #20315

This commit is contained in:
Alexey Milovidov 2021-06-14 07:21:29 +03:00
parent 39515083e4
commit 6e8239d5d4
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,10 @@
1023 0 \N
1024 1 \N
1025 2 \N
1026 3 \N
1027 4 \N
1028 5 \N
1029 6 \N
1030 7 \N
1031 8 \N
1032 9 \N

View File

@ -0,0 +1,16 @@
SELECT
1023 + l,
*
FROM
(
SELECT toLowCardinality(toNullable(number)) AS l
FROM system.numbers
LIMIT 10
) AS s1
ANY LEFT JOIN
(
SELECT toLowCardinality(toNullable(number)) AS r
FROM system.numbers
LIMIT 7
) AS s2 ON (l + 1023) = (r * 3)
ORDER BY l, r;