From 55ae41000f46c0e8abf764a35a092513248dd241 Mon Sep 17 00:00:00 2001 From: yiguolei <676222867@qq.com> Date: Sun, 24 Mar 2024 12:08:05 +0800 Subject: [PATCH] [enhancement](fatal) change log fatal to throw exception to avoid core (#32715) Co-authored-by: yiguolei --- be/src/vec/functions/function_binary_arithmetic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/be/src/vec/functions/function_binary_arithmetic.h b/be/src/vec/functions/function_binary_arithmetic.h index 8c433783c2..a34709732c 100644 --- a/be/src/vec/functions/function_binary_arithmetic.h +++ b/be/src/vec/functions/function_binary_arithmetic.h @@ -941,9 +941,9 @@ public: return false; }); if (!valid) { - LOG(FATAL) << fmt::format("Illegal types {} and {} of arguments of function {}", - arguments[0]->get_name(), arguments[1]->get_name(), - get_name()); + throw Exception(ErrorCode::INTERNAL_ERROR, + "Illegal types {} and {} of arguments of function {}", + arguments[0]->get_name(), arguments[1]->get_name(), get_name()); } if constexpr (is_to_null_type) {