Fix test and additional case

This commit is contained in:
alesapin 2020-06-17 11:29:56 +03:00
parent 0ac5132eb0
commit aaa1063275
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
CREATE TABLE default.add_table\n(\n `key` UInt64, \n `value1` String\n)\nENGINE = MergeTree()\nORDER BY key\nSETTINGS index_granularity = 8192 CREATE TABLE default.add_table\n(\n `key` UInt64,\n `value1` String\n)\nENGINE = MergeTree()\nORDER BY key\nSETTINGS index_granularity = 8192
CREATE TABLE default.add_table\n(\n `key` UInt64, \n `value1` String\n)\nENGINE = MergeTree()\nORDER BY key\nSETTINGS index_granularity = 8192 CREATE TABLE default.add_table\n(\n `key` UInt64,\n `value1` String\n)\nENGINE = MergeTree()\nORDER BY key\nSETTINGS index_granularity = 8192
CREATE TABLE default.add_table\n(\n `key` UInt64, \n `value1` String\n)\nENGINE = MergeTree()\nORDER BY key\nSETTINGS index_granularity = 8192 CREATE TABLE default.add_table\n(\n `key` UInt64,\n `value1` String\n)\nENGINE = MergeTree()\nORDER BY key\nSETTINGS index_granularity = 8192
CREATE TABLE default.add_table\n(\n `key` UInt64, \n `value1` String, \n `value2` UInt64\n)\nENGINE = MergeTree()\nORDER BY key\nSETTINGS index_granularity = 8192 CREATE TABLE default.add_table\n(\n `key` UInt64,\n `value1` String,\n `value2` UInt64\n)\nENGINE = MergeTree()\nORDER BY key\nSETTINGS index_granularity = 8192

View File

@ -22,4 +22,6 @@ ALTER TABLE add_table ADD COLUMN IF NOT EXISTS value1 UInt64, ADD COLUMN IF NOT
SHOW CREATE TABLE add_table; SHOW CREATE TABLE add_table;
ALTER TABLE add_table ADD COLUMN value3 UInt64, ADD COLUMN IF NOT EXISTS value3 UInt32; --{serverError 44}
DROP TABLE IF EXISTS add_table; DROP TABLE IF EXISTS add_table;