[enhancement](fatal) change log fatal to throw exception to avoid core (#32715)

Co-authored-by: yiguolei <yiguolei@gmail.com>
This commit is contained in:
yiguolei
2024-03-24 12:08:05 +08:00
committed by yiguolei
parent 5c3ca0fbc2
commit 55ae41000f

View File

@ -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) {