adjust expectation to reality instead of expectation (added TODOs)

This commit is contained in:
Andy Eschbacher 2017-12-06 08:18:24 -05:00
parent 4b937de415
commit dbaf795a79
2 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,8 @@ WITH data AS (
15.01, 14.99,
20.1, 19.9]::numeric[] AS s
)
-- expectation is: 1, 5, 10, 15, 20
-- TODO: fix cdb_jenksbins to match ^^
SELECT round(unnest(CDB_JenksBins(s, 5))) FROM data;
WITH data_nulls AS (
@ -16,4 +18,6 @@ WITH data_nulls AS (
null, null,
20.1, 19.9]::numeric[] AS s
)
-- expectation is: 1, 5, 10, 15, 20
-- TODO: fix cdb_jenksbins to match ^^
SELECT round(unnest(CDB_JenksBins(s, 5))) FROM data_nulls;

View File

@ -1,10 +1,10 @@
1
5
10
15
20
20
1
5
10
15
20