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

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


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new c7f0bf0053d branch-3.0: [chore](udf) when udf throw exception return 
RUNTIME_ERROR #50687 (#50755)
c7f0bf0053d is described below

commit c7f0bf0053d6d1a6b9a7a6c63702565e8da65729
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat May 17 10:53:38 2025 +0800

    branch-3.0: [chore](udf) when udf throw exception return RUNTIME_ERROR 
#50687 (#50755)
    
    Cherry-picked from #50687
    
    Co-authored-by: zhangstar333 <zhangs...@selectdb.com>
---
 be/src/util/jni-util.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/util/jni-util.cpp b/be/src/util/jni-util.cpp
index d5483a7874c..c2510336129 100644
--- a/be/src/util/jni-util.cpp
+++ b/be/src/util/jni-util.cpp
@@ -300,7 +300,7 @@ Status JniUtil::GetJniExceptionMsg(JNIEnv* env, bool 
log_stack, const string& pr
             env->ExceptionClear();
             string oom_msg = strings::Substitute(oom_msg_template, 
"throwableToStackTrace");
             LOG(WARNING) << oom_msg;
-            return Status::InternalError(oom_msg);
+            return Status::RuntimeError(oom_msg);
         }
         JniUtfCharGuard c_stack_guard;
         RETURN_IF_ERROR(JniUtfCharGuard::create(env, stack, &c_stack_guard));
@@ -308,7 +308,7 @@ Status JniUtil::GetJniExceptionMsg(JNIEnv* env, bool 
log_stack, const string& pr
     }
 
     env->DeleteLocalRef(exc);
-    return Status::InternalError("{}{}", prefix, msg_str_guard.get());
+    return Status::RuntimeError("{}{}", prefix, msg_str_guard.get());
 }
 
 jobject JniUtil::convert_to_java_map(JNIEnv* env, const std::map<std::string, 
std::string>& map) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to