ClickHouse/tests/queries/0_stateless/01398_any_with_alias.sql
Alexey Milovidov 5579e3876c Update test
2021-01-13 17:12:05 +03:00

8 lines
334 B
SQL

SET optimize_move_functions_out_of_any = 1;
SELECT any(number * number) AS n FROM numbers(100) FORMAT CSVWithNames;
EXPLAIN SYNTAX SELECT any(number * number) AS n FROM numbers(100);
SELECT any((number, number * 2)) as n FROM numbers(100) FORMAT CSVWithNames;
EXPLAIN SYNTAX SELECT any((number, number * 2)) as n FROM numbers(100);