From b06f1714367c7305c7a57a8fadd1ac409a796003 Mon Sep 17 00:00:00 2001 From: kevinyhzou Date: Thu, 15 Aug 2024 11:50:36 +0800 Subject: [PATCH] remove useless code --- cpp-ch/local-engine/Functions/SparkFunctionArraysOverlap.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp-ch/local-engine/Functions/SparkFunctionArraysOverlap.cpp b/cpp-ch/local-engine/Functions/SparkFunctionArraysOverlap.cpp index fd5b5cc6e614..9a809ad7b3ab 100644 --- a/cpp-ch/local-engine/Functions/SparkFunctionArraysOverlap.cpp +++ b/cpp-ch/local-engine/Functions/SparkFunctionArraysOverlap.cpp @@ -20,7 +20,6 @@ #include #include #include -#include using namespace DB; @@ -136,6 +135,9 @@ class SparkFunctionArraysOverlap : public IFunction executeCompare(array_col_1->getData(), array_null_col_2->getNestedColumn()); } } + else + throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "The arguments data type is not match."); + if (!res_data[i] && has_null_equals) null_map_data[i] = 1; current_offset_1 = array_offsets_1[i];