From aaa106327520417c18e2a57af5f0f6ce5de05cb4 Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 17 Jun 2020 11:29:56 +0300 Subject: [PATCH] Fix test and additional case --- .../0_stateless/01318_alter_add_column_exists.reference | 8 ++++---- .../queries/0_stateless/01318_alter_add_column_exists.sql | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) 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;