Update 01164_alter_memory_database.sql

This commit is contained in:
tavplubix 2021-10-29 19:58:42 +03:00 committed by GitHub
parent a5901f2901
commit 138c4fcd9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,8 @@
drop database if exists test_1164_memory;
create database test_1164_memory engine=Memory;
create table test_1164_memory.r1 (n int) engine=ReplicatedMergeTree('/test/01164/t', '1') order by n;
create table test_1164_memory.r2 (n int) engine=ReplicatedMergeTree('/test/01164/t', '2') order by n;
create table test_1164_memory.r1 (n int) engine=ReplicatedMergeTree('/test/01164/{database}/t', '1') order by n;
create table test_1164_memory.r2 (n int) engine=ReplicatedMergeTree('/test/01164/{database}/t', '2') order by n;
alter table test_1164_memory.r1 add column m int;
system sync replica test_1164_memory.r1;
system sync replica test_1164_memory.r2;