ClickHouse/tests/queries/0_stateless/02573_quantile_fuse_msan.sql
2023-02-27 19:44:37 +00:00

6 lines
306 B
SQL

SET optimize_syntax_fuse_functions=1;
CREATE TEMPORARY TABLE datetime (`d` DateTime('UTC'));
SELECT quantile(0.1)(d), quantile(0.5)(d) FROM datetime;
INSERT INTO datetime SELECT * FROM generateRandom() LIMIT 10;
SELECT max(cityHash64(*)) > 0 FROM (SELECT quantile(0.1)(d), quantile(0.5)(d) FROM datetime);