mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Update 00101_materialized_views_and_insert_without_explicit_database.sql
This commit is contained in:
parent
e52428ddb2
commit
1d39b94992
@ -18,8 +18,8 @@ USE test;
|
||||
DROP TABLE IF EXISTS tmp;
|
||||
DROP TABLE IF EXISTS tmp_mv;
|
||||
DROP TABLE IF EXISTS tmp_mv2;
|
||||
DROP TABLE IF EXISTS `.inner.tmp_mv`;
|
||||
DROP TABLE IF EXISTS `.inner.tmp_mv2`;
|
||||
DROP TABLE IF EXISTS `.inner.tmp_mv`;
|
||||
DROP TABLE IF EXISTS `.inner.tmp_mv2`;
|
||||
|
||||
CREATE TABLE tmp (date Date, name String) ENGINE = Memory;
|
||||
CREATE MATERIALIZED VIEW tmp_mv ENGINE = AggregatingMergeTree(date, (date, name), 8192) AS SELECT date, name, countState() AS cc FROM tmp GROUP BY date, name;
|
||||
|
Loading…
Reference in New Issue
Block a user