Fix tests

This commit is contained in:
avogar 2024-10-08 05:52:25 +00:00
parent a10c2674fe
commit 07da0c99b8
3 changed files with 2 additions and 17 deletions

View File

@ -1,15 +0,0 @@
set allow_experimental_json_type = 1;
drop table if exists test;
create table test (s String) engine=MergeTree order by tuple();
alter table test modify column s JSON; -- { serverError BAD_ARGUMENTS }
drop table test;
create table test (s Array(String)) engine=MergeTree order by tuple();
alter table test modify column s Array(JSON); -- { serverError BAD_ARGUMENTS }
drop table test;
create table test (s Tuple(String, String)) engine=MergeTree order by tuple();
alter table test modify column s Tuple(JSON, String); -- { serverError BAD_ARGUMENTS }
drop table test;

View File

@ -7,8 +7,8 @@ drop named collection if exists json_alter_fuzzer;
create table test (json String) engine=MergeTree order by tuple();
create named collection json_alter_fuzzer AS json_str='{}';
insert into test select * from fuzzJSON(json_alter_fuzzer, reuse_output=true, max_output_length=128) limit 200000;
alter table test modify column json JSON settings mutations_sync=1;
insert into test select * from fuzzJSON(json_alter_fuzzer, reuse_output=true, max_output_length=64) limit 200000;
alter table test modify column json JSON(max_dynamic_paths=100) settings mutations_sync=1;
select json from test format Null;
optimize table test final;
select json from test format Null;