Jenks: Add inverse request test

This commit is contained in:
Raul Marin 2018-09-10 15:42:54 +02:00
parent 0e7d797400
commit 272d5be776
2 changed files with 16 additions and 2 deletions

View File

@ -17,4 +17,14 @@ WITH data_nulls AS (
null, null,
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;

View File

@ -8,4 +8,8 @@
10.01
15.01
20.1
0.99
4.99
10.01
14.99
19.9