mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 04:42:37 +00:00
14 lines
728 B
SQL
14 lines
728 B
SQL
SELECT number, neighbor(number, 2) FROM system.numbers LIMIT 10; -- { serverError DEPRECATED_FUNCTION }
|
|
|
|
SELECT runningDifference(number) FROM system.numbers LIMIT 10; -- { serverError DEPRECATED_FUNCTION }
|
|
|
|
SELECT k, runningAccumulate(sum_k) AS res FROM (SELECT number as k, sumState(k) AS sum_k FROM numbers(10) GROUP BY k ORDER BY k); -- { serverError DEPRECATED_FUNCTION }
|
|
|
|
SET allow_deprecated_error_prone_window_functions=1;
|
|
|
|
SELECT number, neighbor(number, 2) FROM system.numbers LIMIT 10 FORMAT Null;
|
|
|
|
SELECT runningDifference(number) FROM system.numbers LIMIT 10 FORMAT Null;
|
|
|
|
SELECT k, runningAccumulate(sum_k) AS res FROM (SELECT number as k, sumState(k) AS sum_k FROM numbers(10) GROUP BY k ORDER BY k) FORMAT Null;
|