added tests improved func

This commit is contained in:
Andy Eschbacher
2015-05-14 15:32:58 -04:00
parent dcd35fc3d7
commit 16d0dc739a
3 changed files with 19 additions and 6 deletions

View 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