[CP] Fix null hash value mismatch by using datum hash_func_v2

This commit is contained in:
hezuojiao
2024-02-08 14:51:04 +00:00
committed by ob-robot
parent 696afcdea8
commit 844dfb0162
6 changed files with 55 additions and 15 deletions

View File

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