Jenks: Add inverse request test
This commit is contained in:
parent
0e7d797400
commit
272d5be776
@ -17,4 +17,14 @@ WITH data_nulls AS (
|
|||||||
null, null,
|
null, null,
|
||||||
20.1, 19.9]::numeric[] AS s
|
20.1, 19.9]::numeric[] AS s
|
||||||
)
|
)
|
||||||
SELECT unnest(CDB_JenksBins(s, 5)) FROM data;
|
SELECT unnest(CDB_JenksBins(s, 5)) FROM data_nulls;
|
||||||
|
|
||||||
|
|
||||||
|
WITH data_inverse AS (
|
||||||
|
SELECT Array[0.99, 1.0, 1.01,
|
||||||
|
4.99, 5.01,
|
||||||
|
10.01, 10.01,
|
||||||
|
15.01, 14.99,
|
||||||
|
20.1, 19.9]::numeric[] AS s
|
||||||
|
)
|
||||||
|
SELECT unnest(CDB_JenksBins(s, 5, 0, true)) FROM data_inverse;
|
||||||
|
@ -8,4 +8,8 @@
|
|||||||
10.01
|
10.01
|
||||||
15.01
|
15.01
|
||||||
20.1
|
20.1
|
||||||
|
0.99
|
||||||
|
4.99
|
||||||
|
10.01
|
||||||
|
14.99
|
||||||
|
19.9
|
||||||
|
Loading…
Reference in New Issue
Block a user