Add a QuantileBin test covering arrays with nulls
This commit is contained in:
parent
8f1435c049
commit
0b5ca31931
@ -1,5 +1,11 @@
|
|||||||
WITH data AS (
|
WITH data AS (
|
||||||
SELECT array_agg(x) x FROM generate_series(1,100) x
|
SELECT array_agg(x::numeric) x FROM generate_series(1,100) x
|
||||||
WHERE x % 5 != 0 AND x % 7 != 0
|
WHERE x % 5 != 0 AND x % 7 != 0
|
||||||
)
|
)
|
||||||
SELECT unnest(CDB_QuantileBins(x, 7)) FROM data
|
SELECT unnest(CDB_QuantileBins(x, 7)) FROM data;
|
||||||
|
|
||||||
|
WITH data_nulls AS (
|
||||||
|
SELECT array_agg(CASE WHEN x % 4 != 0 THEN x ELSE NULL END) x FROM generate_series(1,100) x
|
||||||
|
WHERE x % 5 != 0 AND x % 7 != 0
|
||||||
|
)
|
||||||
|
SELECT unnest(CDB_QuantileBins(x, 7)) FROM data_nulls;
|
||||||
|
@ -5,3 +5,10 @@
|
|||||||
71
|
71
|
||||||
86
|
86
|
||||||
99
|
99
|
||||||
|
19
|
||||||
|
38
|
||||||
|
58
|
||||||
|
74
|
||||||
|
94
|
||||||
|
|
||||||
|
99
|
||||||
|
Loading…
Reference in New Issue
Block a user