mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
103 lines
2.2 KiB
Plaintext
103 lines
2.2 KiB
Plaintext
##################
|
|
setup env
|
|
##################
|
|
db_ordinary.log_table 1
|
|
>table detached!
|
|
db_ordinary.log_table 2
|
|
>Table is back after restart
|
|
10
|
|
db_ordinary.log_table 3
|
|
>table detached (permanently)!
|
|
db_ordinary.log_table 4
|
|
>table is still detached (after restart)!
|
|
db_ordinary.log_table 5
|
|
>Table is back after attach
|
|
db_ordinary.log_table 6
|
|
10
|
|
##################
|
|
db_ordinary.mt_table 1
|
|
>table detached!
|
|
db_ordinary.mt_table 2
|
|
>Table is back after restart
|
|
10
|
|
db_ordinary.mt_table 3
|
|
>table detached (permanently)!
|
|
db_ordinary.mt_table 4
|
|
>table is still detached (after restart)!
|
|
db_ordinary.mt_table 5
|
|
>Table is back after attach
|
|
db_ordinary.mt_table 6
|
|
10
|
|
##################
|
|
db_ordinary.null_table 1
|
|
>table detached!
|
|
db_ordinary.null_table 2
|
|
>Table is back after restart
|
|
0
|
|
db_ordinary.null_table 3
|
|
>table detached (permanently)!
|
|
db_ordinary.null_table 4
|
|
>table is still detached (after restart)!
|
|
db_ordinary.null_table 5
|
|
>Table is back after attach
|
|
db_ordinary.null_table 6
|
|
0
|
|
##################
|
|
db_atomic.log_table 1
|
|
>table detached!
|
|
db_atomic.log_table 2
|
|
>Table is back after restart
|
|
10
|
|
db_atomic.log_table 3
|
|
>table detached (permanently)!
|
|
db_atomic.log_table 4
|
|
>table is still detached (after restart)!
|
|
db_atomic.log_table 5
|
|
>Table is back after attach
|
|
db_atomic.log_table 6
|
|
10
|
|
##################
|
|
db_atomic.mt_table 1
|
|
>table detached!
|
|
db_atomic.mt_table 2
|
|
>Table is back after restart
|
|
10
|
|
db_atomic.mt_table 3
|
|
>table detached (permanently)!
|
|
db_atomic.mt_table 4
|
|
>table is still detached (after restart)!
|
|
db_atomic.mt_table 5
|
|
>Table is back after attach
|
|
db_atomic.mt_table 6
|
|
10
|
|
##################
|
|
db_atomic.null_table 1
|
|
>table detached!
|
|
db_atomic.null_table 2
|
|
>Table is back after restart
|
|
0
|
|
db_atomic.null_table 3
|
|
>table detached (permanently)!
|
|
db_atomic.null_table 4
|
|
>table is still detached (after restart)!
|
|
db_atomic.null_table 5
|
|
>Table is back after attach
|
|
db_atomic.null_table 6
|
|
0
|
|
##################
|
|
test for MV
|
|
MV is working
|
|
Usual detach works immediately till restart
|
|
Usual detach activates after restart
|
|
Permanent detach works immediately
|
|
Permanent detach still works after restart
|
|
View can be reattached
|
|
##################
|
|
test for MV with inner table
|
|
MV is working
|
|
1
|
|
View can be reattached
|
|
##################
|
|
DETACH DATABASE is not implemented (proper error)
|
|
1
|