We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18eea51 commit e3816ecCopy full SHA for e3816ec
1 file changed
be/src/udf/java/java_udf.h
@@ -218,11 +218,12 @@ class JVMFunctionHelper {
218
env->ExceptionClear(); \
219
}
220
221
-#define RETURN_ERROR_IF_JNI_EXCEPTION(env) \
222
- if (auto e = env->ExceptionOccurred()) { \
223
- LOCAL_REF_GUARD(e); \
224
- std::string msg = JVMFunctionHelper::getInstance().dumpExceptionString(e); \
225
- return Status::InternalError(JVMFunctionHelper::getInstance().dumpExceptionString(e)); \
+#define RETURN_ERROR_IF_JNI_EXCEPTION(env) \
+ if (auto e = env->ExceptionOccurred()) { \
+ LOCAL_REF_GUARD(e); \
+ std::string msg = JVMFunctionHelper::getInstance().dumpExceptionString(e); \
+ env->ExceptionClear(); \
226
+ return Status::InternalError(msg); \
227
228
229
// Used for UDAF serialization and deserialization,
0 commit comments