diff --git a/be/src/vec/functions/array/function_array_binary.h b/be/src/vec/functions/array/function_array_binary.h index f769657ce8b1d9..3889cd3d5248f0 100644 --- a/be/src/vec/functions/array/function_array_binary.h +++ b/be/src/vec/functions/array/function_array_binary.h @@ -43,7 +43,7 @@ class FunctionArrayBinary : public IFunction { assert_cast(*(arguments[0])).get_nested_type()); auto right_nested_type = remove_nullable( assert_cast(*(arguments[1])).get_nested_type()); - DCHECK(left_nested_type->equals(*right_nested_type)) + DCHECK(left_nested_type->equals_ignore_precision(*right_nested_type)) << "data type " << arguments[0]->get_name() << " not equal with " << arguments[1]->get_name(); return Impl::get_return_type(arguments); diff --git a/be/src/vec/functions/array/function_array_contains_all.cpp b/be/src/vec/functions/array/function_array_contains_all.cpp index 2150b8165b11be..5c3da6c8f80921 100644 --- a/be/src/vec/functions/array/function_array_contains_all.cpp +++ b/be/src/vec/functions/array/function_array_contains_all.cpp @@ -53,7 +53,7 @@ class FunctionArrayContainsAll : public IFunction { assert_cast(*left_data_type).get_nested_type()); auto right_nested_type = remove_nullable( assert_cast(*right_data_type).get_nested_type()); - DCHECK(left_nested_type->equals(*right_nested_type)) + DCHECK(left_nested_type->equals_ignore_precision(*right_nested_type)) << "data type " << arguments[0]->get_name() << " not equal with " << arguments[1]->get_name(); return std::make_shared(); diff --git a/be/src/vec/functions/array/function_arrays_overlap.h b/be/src/vec/functions/array/function_arrays_overlap.h index f5ab63ff3af1b8..220e59b075c57e 100644 --- a/be/src/vec/functions/array/function_arrays_overlap.h +++ b/be/src/vec/functions/array/function_arrays_overlap.h @@ -151,7 +151,7 @@ class FunctionArraysOverlap : public IFunction { assert_cast(*left_data_type).get_nested_type()); auto right_nested_type = remove_nullable( assert_cast(*right_data_type).get_nested_type()); - DCHECK(left_nested_type->equals(*right_nested_type)) + DCHECK(left_nested_type->equals_ignore_precision(*right_nested_type)) << "data type " << arguments[0]->get_name() << " not equal with " << arguments[1]->get_name(); return make_nullable(std::make_shared());