Skip to content

Commit

Permalink
[chore](error msg) More convenient error msg when function not found. (
Browse files Browse the repository at this point in the history
…#40296)

previous
```
ERROR 1105 (HY000): errCode = 2, detailMessage = ([]())[INTERNAL_ERROR]Function dsqrt get failed, expr is VectorizedFnCall[dsqrt](arguments=Float64,return=Float64) and return type is Float64.
```
now
```
ERROR 1105 (HY000): errCode = 2, detailMessage = ([]())[INTERNAL_ERROR]Could not find function dsqrt, arg Float64 return Float64
```
  • Loading branch information
zhiqiang-hhhh authored Sep 5, 2024
1 parent ddaec47 commit 1666c83
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions be/src/vec/exprs/vectorized_fn_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ Status VectorizedFnCall::prepare(RuntimeState* state, const RowDescriptor& desc,
_fn.name.function_name, argument_template, _data_type, state->be_exec_version());
}
if (_function == nullptr) {
return Status::InternalError(
"Function {} get failed, expr is {} "
"and return type is {}.",
_fn.name.function_name, _expr_name, _data_type->get_name());
return Status::InternalError("Could not find function {}, arg {} return {} ",
_fn.name.function_name, get_child_names(),
_data_type->get_name());
}
VExpr::register_function_context(state, context);
_function_name = _fn.name.function_name;
Expand Down

0 comments on commit 1666c83

Please sign in to comment.