diff --git a/src/sql/resolver/expr/ob_raw_expr.cpp b/src/sql/resolver/expr/ob_raw_expr.cpp index af51b8b795..5afb44d81c 100644 --- a/src/sql/resolver/expr/ob_raw_expr.cpp +++ b/src/sql/resolver/expr/ob_raw_expr.cpp @@ -810,6 +810,9 @@ int ObRawExpr::is_non_pure_sys_func_expr(bool &is_non_pure) const bool complete = true; if (OB_UNLIKELY(!value.is_string_type())) { // just pass, will report error when calc result type + if (value.is_null()) { + is_non_pure = true; + } } else if (OB_FAIL(ObTimeConverter::check_dfm_deterministic(value.get_string(), value.get_collation_type(), need_tz, complete))) {