2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE IF EXISTS datetime;
|
2018-11-22 14:32:28 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
CREATE TABLE datetime (d DateTime) ENGINE = Memory;
|
|
|
|
INSERT INTO datetime(d) VALUES(toDateTime('2016-06-15 23:00:00'));
|
2018-11-14 15:04:23 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT quantile(0.2)(d) FROM datetime;
|
|
|
|
SELECT quantiles(0.2)(d) FROM datetime;
|
2018-11-14 15:04:23 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT quantileDeterministic(0.2)(d, 1) FROM datetime;
|
|
|
|
SELECT quantilesDeterministic(0.2)(d, 1) FROM datetime;
|
2018-11-14 15:04:23 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT quantileExact(0.2)(d) FROM datetime;
|
|
|
|
SELECT quantilesExact(0.2)(d) FROM datetime;
|
2018-11-14 15:04:23 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT quantileExactWeighted(0.2)(d, 1) FROM datetime;
|
|
|
|
SELECT quantilesExactWeighted(0.2)(d, 1) FROM datetime;
|
2018-11-14 15:04:23 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT quantileTiming(0.2)(d) FROM datetime; -- { serverError 43 }
|
|
|
|
SELECT quantilesTiming(0.2)(d) FROM datetime; -- { serverError 43 }
|
2018-11-14 15:04:23 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT quantileTimingWeighted(0.2)(d, 1) FROM datetime; -- { serverError 43 }
|
|
|
|
SELECT quantilesTimingWeighted(0.2)(d, 1) FROM datetime; -- { serverError 43 }
|
2018-11-14 15:04:23 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT quantileTDigest(0.2)(d) FROM datetime;
|
|
|
|
SELECT quantilesTDigest(0.2)(d) FROM datetime;
|
2018-11-14 15:04:23 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
SELECT quantileTDigestWeighted(0.2)(d, 1) FROM datetime;
|
|
|
|
SELECT quantilesTDigestWeighted(0.2)(d, 1) FROM datetime;
|
2018-11-22 14:32:28 +00:00
|
|
|
|
2019-04-16 14:13:13 +00:00
|
|
|
DROP TABLE datetime;
|