Skip to content

Commit

Permalink
change to log error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenhaocs committed Dec 25, 2022
1 parent e2a5edb commit a2fcac7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/meta/MetaServiceUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ nebula::cpp2::ErrorCode MetaServiceUtils::alterColumnDefs(std::vector<cpp2::Colu
return nebula::cpp2::ErrorCode::E_UNSUPPORTED;
}
if (!isLegalTypeConversion(it->get_type(), col.get_type())) {
LOG(WARNING) << "Update colume type " << colName << " from "
<< apache::thrift::util::enumNameSafe(it->get_type().get_type()) << " to "
<< apache::thrift::util::enumNameSafe(col.get_type().get_type())
<< " is not allowed!";
LOG(ERROR) << "Update colume type " << colName << " from "
<< apache::thrift::util::enumNameSafe(it->get_type().get_type()) << " to "
<< apache::thrift::util::enumNameSafe(col.get_type().get_type())
<< " is not allowed!";
return nebula::cpp2::ErrorCode::E_UNSUPPORTED;
}
*it = col;
Expand Down

0 comments on commit a2fcac7

Please sign in to comment.