mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added test with runningDifference function. #2590
This commit is contained in:
parent
5e3c0c0238
commit
d49a39e5e5
@ -0,0 +1,21 @@
|
||||
0
|
||||
1
|
||||
4
|
||||
5
|
||||
-
|
||||
0
|
||||
\N
|
||||
1
|
||||
\N
|
||||
7
|
||||
-
|
||||
\N
|
||||
0
|
||||
-
|
||||
\N
|
||||
\N
|
||||
0
|
||||
2
|
||||
\N
|
||||
\N
|
||||
2
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user