This commit is contained in:
Alexey Milovidov 2020-05-17 10:47:53 +03:00
parent 7396790bd9
commit 7971f62776

View File

@ -1474,7 +1474,7 @@ void MergeTreeData::checkAlterIsPossible(const AlterCommands & commands, const S
{
throw Exception(
"Trying to ALTER RENAME key " + backQuoteIfNeed(command.column_name) + " column which is a part of key expression",
ErrorCodes::ILLEGAL_COLUMN);
ErrorCodes::ALTER_OF_COLUMN_IS_FORBIDDEN);
}
}
else if (command.isModifyingData(getInMemoryMetadata()))