[refactor] Refactoring Status static methods to format message using fmt(#9533)

This commit is contained in:
Tiewei Fang
2022-07-02 18:58:23 +08:00
committed by GitHub
parent 143f519ae2
commit c9f86bc7e2
181 changed files with 983 additions and 1273 deletions

View File

@ -84,8 +84,8 @@ struct MurmurHash2Impl64 {
}
} else {
DCHECK(false);
return Status::NotSupported(fmt::format("Illegal column {} of argument of function {}",
column->get_name(), name));
return Status::NotSupported("Illegal column {} of argument of function {}",
column->get_name(), name);
}
return Status::OK();
}
@ -130,8 +130,8 @@ struct MurmurHash2Impl64 {
}
} else {
DCHECK(false);
return Status::NotSupported(fmt::format("Illegal column {} of argument of function {}",
column->get_name(), name));
return Status::NotSupported("Illegal column {} of argument of function {}",
column->get_name(), name);
}
return Status::OK();
}
@ -149,8 +149,7 @@ struct MurmurHash2Impl64 {
return execute_int_type<TYPE, first>(icolumn, col_to, input_rows_count);
NUMERIC_TYPE_TO_COLUMN_TYPE(DISPATCH)
#undef DISPATCH
return Status::NotSupported(
fmt::format("argument_type {} not supported", from_type->get_name()));
return Status::NotSupported("argument_type {} not supported", from_type->get_name());
}
};
using FunctionMurmurHash2_64 = FunctionVariadicArgumentsBase<DataTypeUInt64, MurmurHash2Impl64>;
@ -215,8 +214,8 @@ struct MurmurHash3Impl32 {
}
} else {
DCHECK(false);
return Status::NotSupported(fmt::format("Illegal column {} of argument of function {}",
column->get_name(), name));
return Status::NotSupported("Illegal column {} of argument of function {}",
column->get_name(), name);
}
return Status::OK();
}