ClickHouse/tests/queries/0_stateless/02388_analyzer_recursive_lambda.sql

6 lines
289 B
SQL

SET allow_experimental_analyzer = 1;
WITH x -> plus(lambda(1), x) AS lambda SELECT lambda(1048576); -- { serverError 1 };
WITH lambda(lambda(plus(x, x, -1)), tuple(x), x + 2147483646) AS lambda, x -> plus(lambda(1), x, 2) AS lambda SELECT 1048576, lambda(1048576); -- { serverError 1 };