Jenks: Add test for less data than breaks

This commit is contained in:
Raul Marin
2018-09-10 16:15:02 +02:00
parent e374b9128f
commit 7e131ac88d
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -28,3 +28,9 @@ WITH data_inverse AS (
20.1, 19.9]::numeric[] AS s
)
SELECT unnest(CDB_JenksBins(s, 5, 0, true)) FROM data_inverse;
WITH data_small AS (
SELECT Array[0.99, 1.0, 10.01, 10.01, 10.01, 10.01]::numeric[] AS s
)
SELECT unnest(CDB_JenksBins(s, 4)) FROM data_small;