ClickHouse/tests/queries/0_stateless/01960_lambda_precedence.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
423 B
MySQL
Raw Normal View History

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);