mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
test for rename atomic hanging (#30080)
* test for rename atomic hanging * test for rename atomic hanging * Update 02096_rename_atomic_hang.sql * Update 02096_rename_atomic_hang.sql Co-authored-by: tavplubix <tavplubix@gmail.com>
This commit is contained in:
parent
8ed4e73705
commit
6a0ee3d23e
@ -0,0 +1,2 @@
|
|||||||
|
2000
|
||||||
|
2000
|
20
tests/queries/0_stateless/02096_rename_atomic_hang.sql
Normal file
20
tests/queries/0_stateless/02096_rename_atomic_hang.sql
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
-- Tags: no-parallel
|
||||||
|
|
||||||
|
drop database if exists db_hang;
|
||||||
|
drop database if exists db_hang_temp;
|
||||||
|
create database db_hang engine=Ordinary;
|
||||||
|
use db_hang;
|
||||||
|
create table db_hang.test(A Int64) Engine=MergeTree order by A;
|
||||||
|
create materialized view db_hang.test_mv(A Int64) Engine=MergeTree order by A as select * from db_hang.test;
|
||||||
|
insert into db_hang.test select * from numbers(1000);
|
||||||
|
|
||||||
|
create database db_hang_temp engine=Atomic;
|
||||||
|
rename table db_hang.test to db_hang_temp.test;
|
||||||
|
rename table db_hang.test_mv to db_hang_temp.test_mv;
|
||||||
|
|
||||||
|
drop database db_hang;
|
||||||
|
rename database db_hang_temp to db_hang;
|
||||||
|
insert into db_hang.test select * from numbers(1000);
|
||||||
|
select count() from db_hang.test;
|
||||||
|
select count() from db_hang.test_mv;
|
||||||
|
drop database db_hang;
|
Loading…
Reference in New Issue
Block a user