mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
6 lines
306 B
MySQL
6 lines
306 B
MySQL
|
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);
|