mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 05:52:05 +00:00
41 lines
961 B
Plaintext
41 lines
961 B
Plaintext
k dt v
|
|
a 2001-02-03 00:00:00 0
|
|
a 2001-02-03 00:00:01 1
|
|
a 2001-02-03 00:00:02 2
|
|
a 2001-02-03 00:00:03 3
|
|
a 2001-02-03 00:00:04 4
|
|
b 2001-02-03 00:00:00 0
|
|
b 2001-02-03 00:00:01 1
|
|
b 2001-02-03 00:00:02 2
|
|
b 2001-02-03 00:00:03 3
|
|
b 2001-02-03 00:00:04 4
|
|
b 2001-02-03 01:00:00 5
|
|
b 2001-02-03 01:00:01 6
|
|
b 2001-02-03 01:00:02 7
|
|
b 2001-02-03 01:00:03 8
|
|
b 2001-02-03 01:00:04 9
|
|
k groupArrayMovingSum(v)
|
|
String Array(UInt64)
|
|
a [0,1,3,6,10]
|
|
b [0,1,3,6,10,15,21,28,36,45]
|
|
k groupArrayMovingSum(3)(v)
|
|
String Array(UInt64)
|
|
a [0,1,3,6,9]
|
|
b [0,1,3,6,9,12,15,18,21,24]
|
|
k groupArrayMovingAvg(v)
|
|
String Array(Float64)
|
|
a [0,0.2,0.6,1.2,2]
|
|
b [0,0.1,0.3,0.6,1,1.5,2.1,2.8,3.6,4.5]
|
|
k groupArrayMovingAvg(3)(v)
|
|
String Array(Float64)
|
|
a [0,0.3333333333333333,1,2,3]
|
|
b [0,0.3333333333333333,1,2,3,4,5,6,7,8]
|
|
k groupArrayMovingSum(v)
|
|
String Array(UInt64)
|
|
a [0,1,3,6,10]
|
|
b [0,1,3,6,10,15,21,28,36,45]
|
|
k groupArrayMovingSum(v)
|
|
String Array(UInt64)
|
|
a [0,1,3,6,10]
|
|
b [0,1,3,6,10,15,21,28,36,45]
|