Remove unneded changes

This commit is contained in:
avogar 2024-10-07 07:06:10 +00:00
parent 7808f00857
commit a9fc07d9af

View File

@ -1465,14 +1465,6 @@ void AlterCommands::validate(const StoragePtr & table, ContextPtr context) const
ErrorCodes::BAD_ARGUMENTS,
"The change of data type {} of column {} to {} is not allowed. It has known bugs",
old_data_type->getName(), backQuote(column_name), command.data_type->getName());
// bool has_object_type = isObject(command.data_type);
// command.data_type->forEachChild([&](const IDataType & type){ has_object_type |= isObject(type); });
// if (has_object_type)
// throw Exception(
// ErrorCodes::BAD_ARGUMENTS,
// "The change of data type {} of column {} to {} is not supported.",
// old_data_type->getName(), backQuote(column_name), command.data_type->getName());
}
if (command.isRemovingProperty())