ClickHouse/tests/queries/0_stateless/00753_quantile_format.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.3 KiB
MySQL
Raw Normal View History

DROP TABLE IF EXISTS datetime;
2018-11-22 14:32:28 +00:00
2021-04-27 08:44:48 +00:00
CREATE TABLE datetime (d DateTime('UTC')) ENGINE = Memory;
2021-04-27 09:49:24 +00:00
INSERT INTO datetime(d) VALUES(toDateTime('2016-06-15 23:00:00', 'UTC'));
SELECT quantile(0.2)(d) FROM datetime;
SELECT quantiles(0.2)(d) FROM datetime;
SELECT quantileDeterministic(0.2)(d, 1) FROM datetime;
SELECT quantilesDeterministic(0.2)(d, 1) FROM datetime;
SELECT quantileExact(0.2)(d) FROM datetime;
SELECT quantilesExact(0.2)(d) FROM datetime;
SELECT quantileExactWeighted(0.2)(d, 1) FROM datetime;
SELECT quantilesExactWeighted(0.2)(d, 1) FROM datetime;
SELECT quantileInterpolatedWeighted(0.2)(d, 1) FROM datetime;
SELECT quantilesInterpolatedWeighted(0.2)(d, 1) FROM datetime;
2022-06-21 12:21:17 +00:00
SELECT quantileTiming(0.2)(d) FROM datetime;
SELECT quantilesTiming(0.2)(d) FROM datetime;
SELECT quantileTimingWeighted(0.2)(d, 1) FROM datetime;
SELECT quantilesTimingWeighted(0.2)(d, 1) FROM datetime;
SELECT quantileTDigest(0.2)(d) FROM datetime;
SELECT quantilesTDigest(0.2)(d) FROM datetime;
SELECT quantileTDigestWeighted(0.2)(d, 1) FROM datetime;
SELECT quantilesTDigestWeighted(0.2)(d, 1) FROM datetime;
2018-11-22 14:32:28 +00:00
2021-04-26 09:39:08 +00:00
SELECT quantileBFloat16(0.2)(d) FROM datetime;
SELECT quantilesBFloat16(0.2)(d) FROM datetime;
2021-04-25 21:49:02 +00:00
2021-08-22 12:15:20 +00:00
SELECT quantileBFloat16Weighted(0.2)(d, 1) FROM datetime;
SELECT quantilesBFloat16Weighted(0.2)(d, 1) FROM datetime;
DROP TABLE datetime;