diff --git a/tests/queries/0_stateless/01318_alter_add_column_exists.reference b/tests/queries/0_stateless/01318_alter_add_column_exists.reference index 5f6c4cab1c8..e357550ca1c 100644 --- a/tests/queries/0_stateless/01318_alter_add_column_exists.reference +++ b/tests/queries/0_stateless/01318_alter_add_column_exists.reference @@ -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 `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)\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 diff --git a/tests/queries/0_stateless/01318_alter_add_column_exists.sql b/tests/queries/0_stateless/01318_alter_add_column_exists.sql index a4652c72f55..e270c578600 100644 --- a/tests/queries/0_stateless/01318_alter_add_column_exists.sql +++ b/tests/queries/0_stateless/01318_alter_add_column_exists.sql @@ -22,4 +22,6 @@ ALTER TABLE add_table ADD COLUMN IF NOT EXISTS value1 UInt64, ADD COLUMN IF NOT 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;