fix replicated indices mutations

This commit is contained in:
Nikita Vasilev 2019-07-28 17:55:51 +03:00
parent 538c17be3f
commit 39b40f8e42
2 changed files with 3 additions and 2 deletions

View File

@ -865,7 +865,7 @@ bool StorageReplicatedMergeTree::executeLogEntry(LogEntry & entry)
return true; return true;
} }
if (entry.type == LogEntry::CLEAR_COLUMN) if (entry.type == LogEntry::CLEAR_COLUMN || entry.type == LogEntry::CLEAR_INDEX)
{ {
executeClearColumnOrIndexInPartition(entry); executeClearColumnOrIndexInPartition(entry);
return true; return true;

View File

@ -3,7 +3,8 @@
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. $CURDIR/../shell_config.sh . $CURDIR/../shell_config.sh
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.minmax_idx;" $CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.indices_mutaions1;"
$CLICKHOUSE_CLIENT --query="DROP TABLE IF EXISTS test.indices_mutaions2;"
$CLICKHOUSE_CLIENT -n --query=" $CLICKHOUSE_CLIENT -n --query="