ClickHouse/tests/queries/0_stateless/01956_fuse_quantile_optimization.reference
2021-10-11 10:39:55 +08:00

99 lines
2.7 KiB
Plaintext

2016-06-15 23:00:00 2016-06-15 23:00:00
2016-06-15 23:00:00 2016-06-15 23:00:00
2016-06-15 23:00:00 2016-06-15 23:00:00
2016-06-15 23:00:00 2016-06-15 23:00:00 2016-06-15 23:00:00
30000 30000 30000
30000 30000 30000
2016-06-15 23:00:16 2016-06-15 23:00:16 2016-06-15 23:00:16
2016-06-15 23:00:16 2016-06-15 23:00:16 2016-06-15 23:00:16
2016-04-02 17:23:12 2016-04-02 17:23:12 2016-04-02 17:23:12
---------After fuse result-----------
quantile:
SELECT
quantiles(0.2, 0.3)(d)[1],
quantiles(0.2, 0.3)(d)[2]
FROM datetime
2016-06-15 23:00:00 2016-06-15 23:00:00
quantileDeterministic:
SELECT
quantilesDeterministic(0.2, 0.5)(d, 1)[1],
quantilesDeterministic(0.2, 0.5)(d, 1)[2]
FROM datetime
2016-06-15 23:00:00 2016-06-15 23:00:00
quantileExact:
SELECT
quantilesExact(0.2, 0.5)(d)[1],
quantilesExact(0.2, 0.5)(d)[2]
FROM datetime
2016-06-15 23:00:00 2016-06-15 23:00:00
quantileExactWeighted:
SELECT
quantilesExactWeighted(0.2, 0.4)(d, 1)[1],
quantilesExactWeighted(0.2, 0.4)(d, 1)[2],
quantileExactWeighted(0.3)(d, 2)
FROM datetime
2016-06-15 23:00:00 2016-06-15 23:00:00 2016-06-15 23:00:00
quantileTiming:
SELECT
quantilesTiming(0.2, 0.3)(d)[1],
quantilesTiming(0.2, 0.3)(d)[2],
quantileTiming(0.2)(d + 1)
FROM datetime
30000 30000 30000
quantileTimingWeighted:
SELECT
quantilesTimingWeighted(0.2, 0.3)(d, 1)[1],
quantilesTimingWeighted(0.2, 0.3)(d, 1)[2],
quantileTimingWeighted(0.2)(d, 2)
FROM datetime
30000 30000 30000
quantileTDigest:
SELECT
quantilesTDigest(0.2, 0.3)(d)[1],
quantilesTDigest(0.2, 0.3)(d)[2],
quantileTDigest(0.2)(d + 1)
FROM datetime
2016-06-15 23:00:16 2016-06-15 23:00:16 2016-06-15 23:00:16
quantileTDigestWeighted:
SELECT
quantilesTDigestWeighted(0.2, 0.3)(d, 1)[1],
quantilesTDigestWeighted(0.2, 0.3)(d, 1)[2],
quantileTDigestWeighted(0.4)(d, 2)
FROM datetime
2016-06-15 23:00:16 2016-06-15 23:00:16 2016-06-15 23:00:16
quantileBFloat16:
SELECT
quantilesBFloat16(0.2, 0.3)(d)[1],
quantilesBFloat16(0.2, 0.3)(d)[2],
quantileBFloat16(0.4)(d + 1)
FROM datetime
2016-04-02 17:23:12 2016-04-02 17:23:12 2016-04-02 17:23:12
quantileBFloat16Weighted:
SELECT
quantilesBFloat16Weighted(0.2, 0.3)(d, 1)[1],
quantilesBFloat16Weighted(0.2, 0.3)(d, 1)[2],
quantileBFloat16Weighted(0.2)(d, 2)
FROM datetime
2016-04-02 17:23:12 2016-04-02 17:23:12 2016-04-02 17:23:12
SELECT
quantiles(0.2, 0.3, 0.2)(d)[1] AS k,
quantiles(0.2, 0.3, 0.2)(d)[2]
FROM datetime
ORDER BY quantiles(0.2, 0.3, 0.2)(d)[3] ASC
0 4 7.2 7.6
1 5 8.2 8.6
SELECT
b,
quantiles(0.5, 0.9, 0.95)(x)[1] AS a,
quantiles(0.5, 0.9, 0.95)(x)[2] AS y,
quantiles(0.5, 0.9, 0.95)(x)[3]
FROM
(
SELECT
number AS x,
number % 2 AS b
FROM numbers(10)
)
GROUP BY b
1 1 1