ClickHouse/tests/queries/0_stateless/02128_apply_lambda_parsing.sql
2021-12-08 21:29:50 +03:00

14 lines
793 B
SQL

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 }
SELECT * APPLY lambda(tuple(x), 1) FROM numbers(5);
SELECT * APPLY lambda(tuple(x), x + 1) FROM numbers(5);