You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/09/10 04:03:19 UTC

(doris) branch branch-2.1 updated: [chore](error msg) More convenient error msg when function not found. #40296 (#40570)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 6961c95eca0 [chore](error msg) More convenient error msg when function not found. #40296 (#40570)
6961c95eca0 is described below

commit 6961c95eca0e6ffda4dfe2b7e20de10ab0a45418
Author: zhiqiang <se...@163.com>
AuthorDate: Tue Sep 10 12:03:12 2024 +0800

    [chore](error msg) More convenient error msg when function not found. #40296 (#40570)
    
    cherry pick from #40296
---
 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 2082a93d423..6df4e443707 100644
--- a/be/src/vec/exprs/vectorized_fn_call.cpp
+++ b/be/src/vec/exprs/vectorized_fn_call.cpp
@@ -105,10 +105,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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org