From 9e49d7c8cb4a8eeed215bf969dbf90b29d9ab7b1 Mon Sep 17 00:00:00 2001 From: alesapin Date: Thu, 2 Apr 2020 21:31:27 +0300 Subject: [PATCH] One more test for indices --- .../0_stateless/01213_alter_rename_primary_key_zookeeper.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/queries/0_stateless/01213_alter_rename_primary_key_zookeeper.sql b/tests/queries/0_stateless/01213_alter_rename_primary_key_zookeeper.sql index 360a2f3745d..e03ef67212e 100644 --- a/tests/queries/0_stateless/01213_alter_rename_primary_key_zookeeper.sql +++ b/tests/queries/0_stateless/01213_alter_rename_primary_key_zookeeper.sql @@ -34,7 +34,8 @@ CREATE TABLE table_for_rename_with_primary_key key2 UInt64, key3 UInt64, value1 String, - value2 String + value2 String, + INDEX idx (value1) TYPE set(1) GRANULARITY 1 ) ENGINE = ReplicatedMergeTree('/clickhouse/tables/table_for_rename_pk', '1') PARTITION BY date @@ -49,5 +50,6 @@ ALTER TABLE table_for_rename_with_primary_key RENAME COLUMN key2 TO renamed_key2 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 value1 TO renamed_value1; --{serverError 44} DROP TABLE IF EXISTS table_for_rename_with_primary_key;