Fix style in src code (bracket)

This commit is contained in:
Peter Nguyen 2024-11-13 10:31:24 -08:00
parent 7166df0776
commit e29ee5b96d

View File

@ -792,7 +792,8 @@ void MutationsInterpreter::prepare(bool dry_run)
// Can't materialize a column in the sort key // Can't materialize a column in the sort key
Names sort_columns = metadata_snapshot->getSortingKeyColumns(); Names sort_columns = metadata_snapshot->getSortingKeyColumns();
if (std::find(sort_columns.begin(), sort_columns.end(), command.column_name) != sort_columns.end()) { if (std::find(sort_columns.begin(), sort_columns.end(), command.column_name) != sort_columns.end())
{
throw Exception(ErrorCodes::CANNOT_UPDATE_COLUMN, "Failed to materialize column {} because it's in the sort key. Doing so would break sort order", command.column_name); throw Exception(ErrorCodes::CANNOT_UPDATE_COLUMN, "Failed to materialize column {} because it's in the sort key. Doing so would break sort order", command.column_name);
} }