ClickHouse/tests/queries/0_stateless/02436_system_zookeeper_context.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
337 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS mt;
2023-09-05 18:23:16 +00:00
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;