ClickHouse/tests/queries/0_stateless/02128_apply_lambda_parsing.sql

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

14 lines
793 B
MySQL
Raw Normal View History

2021-12-06 11:04:19 +00:00
WITH * APPLY lambda(e); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda(); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda(1); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda(x); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda(range(1)); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda(range(x)); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda(1, 2); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda(x, y); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda((x, y), 2); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda((x, y), x + y); -- { clientError SYNTAX_ERROR }
SELECT * APPLY lambda(tuple(1), 1); -- { clientError SYNTAX_ERROR }
2021-12-02 14:19:09 +00:00
SELECT * APPLY lambda(tuple(x), 1) FROM numbers(5);
SELECT * APPLY lambda(tuple(x), x + 1) FROM numbers(5);