Update tests

This commit is contained in:
Alexey Milovidov 2020-05-17 07:47:32 +03:00
parent 9fcfe5fb14
commit 7396790bd9
3 changed files with 10 additions and 10 deletions

View File

@ -39,7 +39,7 @@ ORDER BY (created_at, id0, id1);
SET send_logs_level = 'none'; SET send_logs_level = 'none';
ALTER TABLE uuid MODIFY COLUMN id0 UUID; -- { serverError 44 } ALTER TABLE uuid MODIFY COLUMN id0 UUID; -- { serverError 524 }
ALTER TABLE uuid MODIFY COLUMN id1 UUID; -- { serverError 44 } ALTER TABLE uuid MODIFY COLUMN id1 UUID; -- { serverError 524 }
DROP TABLE uuid; DROP TABLE uuid;

View File

@ -21,6 +21,6 @@ drop table if exists ttl;
create table ttl (d Date, a Int) engine = MergeTree order by tuple() partition by toDayOfMonth(d); create table ttl (d Date, a Int) engine = MergeTree order by tuple() partition by toDayOfMonth(d);
alter table ttl modify column a Int ttl d + interval 1 day; alter table ttl modify column a Int ttl d + interval 1 day;
desc table ttl; desc table ttl;
alter table ttl modify column d Int ttl d + interval 1 day; -- { serverError 44} alter table ttl modify column d Int ttl d + interval 1 day; -- { serverError 524 }
drop table if exists ttl; drop table if exists ttl;

View File

@ -17,11 +17,11 @@ INSERT INTO table_for_rename_pk SELECT toDate('2019-10-01') + number % 3, number
SELECT key1, value1 FROM table_for_rename_pk WHERE key1 = 1 AND key2 = 1 AND key3 = 1; SELECT key1, value1 FROM table_for_rename_pk WHERE key1 = 1 AND key2 = 1 AND key3 = 1;
ALTER TABLE table_for_rename_pk RENAME COLUMN key1 TO renamed_key1; --{serverError 44} ALTER TABLE table_for_rename_pk RENAME COLUMN key1 TO renamed_key1; --{serverError 524}
ALTER TABLE table_for_rename_pk RENAME COLUMN key3 TO renamed_key3; --{serverError 44} ALTER TABLE table_for_rename_pk RENAME COLUMN key3 TO renamed_key3; --{serverError 524}
ALTER TABLE table_for_rename_pk RENAME COLUMN key2 TO renamed_key2; --{serverError 44} ALTER TABLE table_for_rename_pk RENAME COLUMN key2 TO renamed_key2; --{serverError 524}
DROP TABLE IF EXISTS table_for_rename_pk NO DELAY; DROP TABLE IF EXISTS table_for_rename_pk NO DELAY;
SELECT sleep(1) FORMAT Null; SELECT sleep(1) FORMAT Null;
@ -45,12 +45,12 @@ PRIMARY KEY (key1, key2);
INSERT INTO table_for_rename_with_primary_key SELECT toDate('2019-10-01') + number % 3, number, number, number, toString(number), toString(number) from numbers(9); INSERT INTO table_for_rename_with_primary_key SELECT toDate('2019-10-01') + number % 3, number, number, number, toString(number), toString(number) from numbers(9);
ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN key1 TO renamed_key1; --{serverError 44} ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN key1 TO renamed_key1; --{serverError 524}
ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN key2 TO renamed_key2; --{serverError 44} ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN key2 TO renamed_key2; --{serverError 524}
ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN key3 TO renamed_key3; --{serverError 44} ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN key3 TO renamed_key3; --{serverError 524}
ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN value1 TO renamed_value1; --{serverError 44} ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN value1 TO renamed_value1; --{serverError 524}
DROP TABLE IF EXISTS table_for_rename_with_primary_key; DROP TABLE IF EXISTS table_for_rename_with_primary_key;