mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
dbms: added test [#METR-10894].
This commit is contained in:
parent
5a8e9a517c
commit
100da1547e
@ -0,0 +1 @@
|
||||
1000
|
@ -0,0 +1,21 @@
|
||||
DROP TABLE IF EXISTS test.stored_aggregates;
|
||||
|
||||
CREATE TABLE test.stored_aggregates
|
||||
(
|
||||
d Date,
|
||||
Uniq AggregateFunction(uniq, UInt64)
|
||||
)
|
||||
ENGINE = AggregatingMergeTree(d, d, 8192);
|
||||
|
||||
INSERT INTO test.stored_aggregates
|
||||
SELECT
|
||||
toDate('2014-06-01') AS d,
|
||||
uniqState(number) AS Uniq
|
||||
FROM
|
||||
(
|
||||
SELECT * FROM system.numbers LIMIT 1000
|
||||
);
|
||||
|
||||
SELECT uniqMerge(Uniq) FROM test.stored_aggregates;
|
||||
|
||||
DROP TABLE test.stored_aggregates;
|
Loading…
Reference in New Issue
Block a user