adjust expectation to reality instead of expectation (added TODOs)
This commit is contained in:
parent
4b937de415
commit
dbaf795a79
@ -5,6 +5,8 @@ WITH data AS (
|
|||||||
15.01, 14.99,
|
15.01, 14.99,
|
||||||
20.1, 19.9]::numeric[] AS s
|
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;
|
SELECT round(unnest(CDB_JenksBins(s, 5))) FROM data;
|
||||||
|
|
||||||
WITH data_nulls AS (
|
WITH data_nulls AS (
|
||||||
@ -16,4 +18,6 @@ WITH data_nulls AS (
|
|||||||
null, null,
|
null, null,
|
||||||
20.1, 19.9]::numeric[] AS s
|
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;
|
SELECT round(unnest(CDB_JenksBins(s, 5))) FROM data_nulls;
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
1
|
1
|
||||||
5
|
5
|
||||||
10
|
10
|
||||||
15
|
20
|
||||||
20
|
20
|
||||||
1
|
1
|
||||||
5
|
5
|
||||||
10
|
10
|
||||||
15
|
|
||||||
20
|
20
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user