[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:
hezuojiao
2023-12-27 13:52:27 +00:00
committed by ob-robot
parent da90dfdd2a
commit 2376627c6d
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())) {