mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
fd76966715
Be a good citizen and leave a test checking for the recovery after the lambda function has been processed
27 lines
423 B
SQL
27 lines
423 B
SQL
SELECT
|
|
1000 AS a,
|
|
arrayMap(a -> (a + 1), [1, 2, 3]),
|
|
a + 10 as c;
|
|
|
|
|
|
-- https://github.com/ClickHouse/ClickHouse/issues/5046
|
|
SELECT sum(c1) AS v
|
|
FROM
|
|
(
|
|
SELECT
|
|
1 AS c1,
|
|
['v'] AS c2
|
|
)
|
|
WHERE arrayExists(v -> (v = 'v'), c2);
|
|
|
|
|
|
SELECT sum(c1) AS v
|
|
FROM
|
|
(
|
|
SELECT
|
|
1 AS c1,
|
|
['v'] AS c2,
|
|
['d'] AS d
|
|
)
|
|
WHERE arrayExists(i -> (d = ['d']), c2);
|