From 42a90cf5337f44e3fe939e4f6dd5c32b8565c064 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Wed, 21 Oct 2020 11:32:57 +0300 Subject: [PATCH] Fix special build. --- src/Functions/array/arrayIntersect.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Functions/array/arrayIntersect.cpp b/src/Functions/array/arrayIntersect.cpp index bb55caf01d1..cce43cd8e62 100644 --- a/src/Functions/array/arrayIntersect.cpp +++ b/src/Functions/array/arrayIntersect.cpp @@ -373,9 +373,9 @@ FunctionArrayIntersect::UnpackedArrays FunctionArrayIntersect::prepareArrays( return arrays; } -ColumnPtr FunctionArrayIntersect::executeImpl(ColumnsWithTypeAndName & arguments, const DataTypePtr & return_type, size_t input_rows_count) const +ColumnPtr FunctionArrayIntersect::executeImpl(ColumnsWithTypeAndName & arguments, const DataTypePtr & result_type, size_t input_rows_count) const { - const auto * return_type_array = checkAndGetDataType(return_type.get()); + const auto * return_type_array = checkAndGetDataType(result_type.get()); if (!return_type_array) throw Exception{"Return type for function " + getName() + " must be array.", ErrorCodes::LOGICAL_ERROR}; @@ -383,7 +383,7 @@ ColumnPtr FunctionArrayIntersect::executeImpl(ColumnsWithTypeAndName & arguments const auto & nested_return_type = return_type_array->getNestedType(); if (typeid_cast(nested_return_type.get())) - return return_type->createColumnConstWithDefaultValue(input_rows_count); + return result_type->createColumnConstWithDefaultValue(input_rows_count); auto num_args = arguments.size(); DataTypes data_types; @@ -393,7 +393,7 @@ ColumnPtr FunctionArrayIntersect::executeImpl(ColumnsWithTypeAndName & arguments auto return_type_with_nulls = getMostSubtype(data_types, true, true); - auto casted_columns = castColumns(arguments, return_type, return_type_with_nulls); + auto casted_columns = castColumns(arguments, result_type, return_type_with_nulls); UnpackedArrays arrays = prepareArrays(casted_columns.casted, casted_columns.initial); @@ -428,7 +428,7 @@ ColumnPtr FunctionArrayIntersect::executeImpl(ColumnsWithTypeAndName & arguments else { column = assert_cast(*return_type_with_nulls).getNestedType()->createColumn(); - result_column = castRemoveNullable(execute(arrays, std::move(column)), return_type); + result_column = castRemoveNullable(execute(arrays, std::move(column)), result_type); } }