2022-12-09 09:47:12 +00:00
|
|
|
SELECT quantiles(0.5)(now()::DateTime('UTC')) WHERE 0;
|
|
|
|
SELECT quantiles(0.5)(now()::DateTime('UTC')) WHERE 0 WITH TOTALS;
|
|
|
|
SELECT arrayReduce('quantiles(0.5)', []::Array(DateTime('UTC')));
|
|
|
|
SELECT quantiles(0.5, 1.1754943508222875e-38, 0.0001, -0., 0.0001, -0., 0.0001, 0., 0.5)(now()::DateTime('UTC')) WHERE 0 WITH TOTALS;
|
2022-12-09 03:17:54 +00:00
|
|
|
|
2022-12-09 09:47:12 +00:00
|
|
|
SELECT DISTINCT arrayReduce('quantiles(0.5)', materialize([]::Array(DateTime('UTC')))) FROM numbers(1000) LIMIT 10;
|
|
|
|
SELECT DISTINCT arrayReduce('quantiles(0, 0.5, 0.9, 1)', materialize([]::Array(DateTime('UTC')))) FROM numbers(1000) LIMIT 10;
|
2022-12-09 03:17:54 +00:00
|
|
|
SELECT DISTINCT arrayReduce('quantiles(0.5)', [0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFE]) FROM numbers(1000) LIMIT 10;
|
2022-12-09 09:47:12 +00:00
|
|
|
SELECT DISTINCT arrayReduce('quantilesDeterministic(0.5)', materialize([]::Array(DateTime('UTC'))), []::Array(UInt64)) FROM numbers(1000) LIMIT 10;
|
|
|
|
SELECT DISTINCT arrayReduce('quantilesDeterministic(0, 0.5, 0.9, 1)', materialize([]::Array(DateTime('UTC'))), []::Array(UInt64)) FROM numbers(1000) LIMIT 10;
|
2022-12-09 03:17:54 +00:00
|
|
|
SELECT DISTINCT arrayReduce('quantiles(0.5)', [CAST(-1, 'UInt256'), CAST(-2, 'UInt256')]) FROM numbers(1000) LIMIT 10;
|
|
|
|
SELECT DISTINCT arrayReduce('quantiles(0.5)', []::Array(Float64)) FROM numbers(1000) LIMIT 10;
|
2022-12-11 02:19:06 +00:00
|
|
|
|
|
|
|
SELECT quantile(0.5)(now()::DateTime('UTC')) WHERE 0;
|
|
|
|
SELECT quantile(0.5)(now()::DateTime('UTC')) WHERE 0 WITH TOTALS;
|
|
|
|
SELECT arrayReduce('quantile(0.5)', []::Array(DateTime('UTC')));
|
|
|
|
|
|
|
|
SELECT DISTINCT arrayReduce('quantile(0.5)', materialize([]::Array(DateTime('UTC')))) FROM numbers(1000) LIMIT 10;
|
|
|
|
SELECT DISTINCT arrayReduce('quantile(0.5)', [0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFE]) FROM numbers(1000) LIMIT 10;
|
|
|
|
SELECT DISTINCT arrayReduce('quantileDeterministic(0.5)', materialize([]::Array(DateTime('UTC'))), []::Array(UInt64)) FROM numbers(1000) LIMIT 10;
|
|
|
|
SELECT DISTINCT arrayReduce('quantile(0.5)', [CAST(-1, 'UInt256'), CAST(-2, 'UInt256')]) FROM numbers(1000) LIMIT 10;
|
|
|
|
SELECT DISTINCT arrayReduce('quantile(0.5)', []::Array(Float64)) FROM numbers(1000) LIMIT 10;
|