From 8cf8d2d2b73973d3eba3a73a6398f4a9421e9a15 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 27 Feb 2015 20:41:48 +0300 Subject: [PATCH] dbms: addition to test [#METR-15181]. --- .../0_stateless/00129_quantile_timing_weighted.reference | 1 + .../queries/0_stateless/00129_quantile_timing_weighted.sql | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.reference b/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.reference index ca50d08d86f..8d231e3ff15 100644 --- a/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.reference +++ b/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.reference @@ -1,3 +1,4 @@ 50 54 50 77 50 nan +[50,90] [54,89] diff --git a/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.sql b/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.sql index 2ad98f9d8ce..d5056c0e420 100644 --- a/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.sql +++ b/dbms/tests/queries/0_stateless/00129_quantile_timing_weighted.sql @@ -1,3 +1,4 @@ SELECT medianTiming(t), medianTimingWeighted(t, w) FROM (SELECT number AS t, number = 77 ? 10 : 1 AS w FROM system.numbers LIMIT 100); -SELECT medianTiming(t), medianTimingWeighted(t, w) FROM (SELECT number AS t, number = 77 ? 10 : 0 AS w FROM system.numbers LIMIT 100); +SELECT quantileTiming(0.5)(t), quantileTimingWeighted(0.5)(t, w) FROM (SELECT number AS t, number = 77 ? 10 : 0 AS w FROM system.numbers LIMIT 100); SELECT medianTiming(t), medianTimingWeighted(t, w) FROM (SELECT number AS t, number = 77 ? 0 : 0 AS w FROM system.numbers LIMIT 100); +SELECT quantilesTiming(0.5, 0.9)(t), quantilesTimingWeighted(0.5, 0.9)(t, w) FROM (SELECT number AS t, number = 77 ? 10 : 1 AS w FROM system.numbers LIMIT 100);