From be51741566335cd65c2e3976c664e0f729859a0a Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Tue, 30 Jun 2020 13:19:06 +0300 Subject: [PATCH] Try fix labda tuple(LC) argument. --- src/Functions/array/FunctionArrayMapped.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Functions/array/FunctionArrayMapped.h b/src/Functions/array/FunctionArrayMapped.h index 346f2e35555..20c57ed0ba4 100644 --- a/src/Functions/array/FunctionArrayMapped.h +++ b/src/Functions/array/FunctionArrayMapped.h @@ -73,7 +73,7 @@ public: if (!array_type) throw Exception("Argument " + toString(i + 2) + " of function " + getName() + " must be array. Found " + arguments[i + 1]->getName() + " instead.", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT); - nested_types[i] = removeLowCardinality(array_type->getNestedType()); + nested_types[i] = array_type->getNestedType(); } const DataTypeFunction * function_type = checkAndGetDataType(arguments[0].get()); @@ -191,8 +191,6 @@ public: if (!column_const_array) throw Exception("Expected array column, found " + column_array_ptr->getName(), ErrorCodes::ILLEGAL_COLUMN); column_array_ptr = column_const_array->convertToFullColumn(); - if (column_array_ptr->lowCardinality()) - column_array_ptr = column_array_ptr->convertToFullColumnIfLowCardinality(); column_array = checkAndGetColumn(column_array_ptr.get()); } @@ -218,7 +216,7 @@ public: } arrays.emplace_back(ColumnWithTypeAndName(column_array->getDataPtr(), - removeLowCardinality(array_type->getNestedType()), + array_type->getNestedType(), array_with_type_and_name.name)); }