This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 1666c8334b2 [chore](error msg) More convenient error msg when function
not found. (#40296)
1666c8334b2 is described below
commit 1666c8334b2346cfadb45a037352838f700d1f38
Author: zhiqiang <[email protected]>
AuthorDate: Thu Sep 5 19:51:55 2024 +0800
[chore](error msg) More convenient error msg when function not found.
(#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
```
---
be/src/vec/exprs/vectorized_fn_call.cpp | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/be/src/vec/exprs/vectorized_fn_call.cpp
b/be/src/vec/exprs/vectorized_fn_call.cpp
index 3e58d8d7be0..65d4230488a 100644
--- a/be/src/vec/exprs/vectorized_fn_call.cpp
+++ b/be/src/vec/exprs/vectorized_fn_call.cpp
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]