2020-07-23 15:15:22 +00:00
|
|
|
SET optimize_move_functions_out_of_any = 1;
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT any(number + number * 2) FROM numbers(1, 2);
|
2020-07-23 15:15:22 +00:00
|
|
|
SELECT any(number + number * 2) FROM numbers(1, 2);
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT anyLast(number + number * 2) FROM numbers(1, 2);
|
2020-07-23 15:15:22 +00:00
|
|
|
SELECT anyLast(number + number * 2) FROM numbers(1, 2);
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX WITH any(number * 3) AS x SELECT x FROM numbers(1, 2);
|
2020-07-23 15:15:22 +00:00
|
|
|
WITH any(number * 3) AS x SELECT x FROM numbers(1, 2);
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT anyLast(number * 3) AS x, x FROM numbers(1, 2);
|
2020-07-23 15:15:22 +00:00
|
|
|
SELECT anyLast(number * 3) AS x, x FROM numbers(1, 2);
|
|
|
|
|
|
|
|
SELECT any(anyLast(number)) FROM numbers(1); -- { serverError 184 }
|
|
|
|
|
|
|
|
SET optimize_move_functions_out_of_any = 0;
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT any(number + number * 2) FROM numbers(1, 2);
|
2020-07-23 15:15:22 +00:00
|
|
|
SELECT any(number + number * 2) FROM numbers(1, 2);
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT anyLast(number + number * 2) FROM numbers(1, 2);
|
2020-07-23 15:15:22 +00:00
|
|
|
SELECT anyLast(number + number * 2) FROM numbers(1, 2);
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX WITH any(number * 3) AS x SELECT x FROM numbers(1, 2);
|
2020-07-23 15:15:22 +00:00
|
|
|
WITH any(number * 3) AS x SELECT x FROM numbers(1, 2);
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT anyLast(number * 3) AS x, x FROM numbers(1, 2);
|
2020-07-23 15:15:22 +00:00
|
|
|
SELECT anyLast(number * 3) AS x, x FROM numbers(1, 2);
|
|
|
|
|
|
|
|
SELECT any(anyLast(number)) FROM numbers(1); -- { serverError 184 }
|
2020-08-13 19:03:11 +00:00
|
|
|
|
|
|
|
SELECT 'arrayJoin';
|
|
|
|
SELECT *, any(arrayJoin([[], []])) FROM numbers(1) GROUP BY number;
|