mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
8 lines
337 B
SQL
8 lines
337 B
SQL
DROP TABLE IF EXISTS mt;
|
|
create table mt (n int, s String) engine=MergeTree order by n;
|
|
insert into mt values (1, '');
|
|
set allow_nondeterministic_mutations=1;
|
|
alter table mt update s = (select toString(groupArray((*,))) from system.zookeeper where path='/') where n=1 settings mutations_sync=2;
|
|
select distinct n from mt;
|
|
DROP TABLE mt;
|