[CP] Fix null hash value mismatch by using datum hash_func_v2
Co-authored-by: jinmaoli <lijinmao.csmaster@gmail.com>
This commit is contained in:
@ -1907,6 +1907,9 @@ bool ObRelationalExprOperator::can_cmp_without_cast(ObExprResType type1,
|
||||
if (ob_is_enum_or_set_type(type1.get_type())
|
||||
&& ob_is_enum_or_set_type(type2.get_type())) {
|
||||
need_no_cast = false;
|
||||
} else if ((type1.is_null() && ObDatumFuncs::is_null_aware_hash_type(type2.get_type())) ||
|
||||
(type2.is_null() && ObDatumFuncs::is_null_aware_hash_type(type1.get_type()))) {
|
||||
need_no_cast = false;
|
||||
} else {
|
||||
if (ObDatumFuncs::is_string_type(type1.get_type())
|
||||
&& ObDatumFuncs::is_string_type(type2.get_type())) {
|
||||
|
||||
Reference in New Issue
Block a user