mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fix clang tidy
This commit is contained in:
parent
97c2579fb9
commit
8bc9ede711
@ -1457,10 +1457,10 @@ void MergeTreeData::checkAlterIsPossible(const AlterCommands & commands, const S
|
||||
/// Some type changes for version column is allowed despite it's a part of sorting key
|
||||
if (command.type == AlterCommand::MODIFY_COLUMN && command.column_name == merging_params.version_column)
|
||||
{
|
||||
auto new_type = command.data_type;
|
||||
auto old_type = old_types[command.column_name];
|
||||
const IDataType * new_type = command.data_type.get();
|
||||
const IDataType * old_type = old_types[command.column_name];
|
||||
|
||||
checkVersionColumnTypesConversion(old_type, new_type.get(), command.column_name);
|
||||
checkVersionColumnTypesConversion(old_type, new_type, command.column_name);
|
||||
|
||||
/// No other checks required
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user