mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
be831d09f7
* [WIP] * Update skip-list * Update ci_config.json * Do not sync inserts for test * Fix more tests * Fix another test * Enable one more test * More fixed tests * More test fixes * Do not absolutize server path for now * More test fixes * Unset CLICKHOUSE_LOG_COMMENT where necessary * Remove debugging set -e * Fix more tests * Fix test reference * Fix style check
22 lines
643 B
SQL
22 lines
643 B
SQL
set insert_distributed_sync = 1;
|
|
SET allow_experimental_live_view = 1;
|
|
|
|
DROP TABLE IF EXISTS lv;
|
|
DROP TABLE IF EXISTS visits;
|
|
DROP TABLE IF EXISTS visits_layer;
|
|
|
|
CREATE TABLE visits(StartDate Date) ENGINE MergeTree ORDER BY(StartDate);
|
|
CREATE TABLE visits_layer(StartDate Date) ENGINE Distributed(test_cluster_two_shards_localhost, currentDatabase(), 'visits', rand());
|
|
|
|
CREATE LIVE VIEW lv AS SELECT * FROM visits_layer ORDER BY StartDate;
|
|
|
|
INSERT INTO visits_layer (StartDate) VALUES ('2020-01-01');
|
|
INSERT INTO visits_layer (StartDate) VALUES ('2020-01-02');
|
|
|
|
SELECT * FROM lv;
|
|
|
|
DROP TABLE visits;
|
|
DROP TABLE visits_layer;
|
|
|
|
DROP TABLE lv;
|