Added test with runningDifference function. #2590

This commit is contained in:
Nikolai Kochetov 2018-07-04 18:59:44 +03:00 committed by alexey-milovidov
parent 5e3c0c0238
commit d49a39e5e5
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,21 @@
0
1
4
5
-
0
\N
1
\N
7
-
\N
0
-
\N
\N
0
2
\N
\N
2

View File

@ -0,0 +1,8 @@
select runningDifference(x) from (select arrayJoin([0, 1, 5, 10]) as x);
select '-';
select runningDifference(x) from (select arrayJoin([2, Null, 3, Null, 10]) as x);
select '-';
select runningDifference(x) from (select arrayJoin([Null, 1]) as x);
select '-';
select runningDifference(x) from (select arrayJoin([Null, Null, 1, 3, Null, Null, 5]) as x);