added tests improved func
This commit is contained in:
5
test/CDB_EqualIntervalBinsTest.sql
Normal file
5
test/CDB_EqualIntervalBinsTest.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
WITH data AS (
|
||||
SELECT array_agg(x) s FROM generate_series(1,300) x
|
||||
WHERE x % 5 != 0 AND x % 7 != 0
|
||||
)
|
||||
SELECT unnest(CDB_EqualIntervalBins(s, 7)) FROM data
|
||||
7
test/CDB_EqualIntervalBins_expect
Normal file
7
test/CDB_EqualIntervalBins_expect
Normal file
@@ -0,0 +1,7 @@
|
||||
43.57142857
|
||||
86.14285714
|
||||
128.71428571
|
||||
171.28571429
|
||||
213.85714286
|
||||
256.42857143
|
||||
299
|
||||
Reference in New Issue
Block a user