Fix type for constant LowCardinality arguments.

This commit is contained in:
Nikolai Kochetov 2019-02-12 18:43:58 +03:00
parent 1af4d9b89c
commit bb686b3154

View File

@ -356,8 +356,7 @@ static ColumnPtr replaceLowCardinalityColumnsByNestedAndGetDictionaryIndexes(
if (auto * column_const = checkAndGetColumn<ColumnConst>(column.column.get())) if (auto * column_const = checkAndGetColumn<ColumnConst>(column.column.get()))
{ {
column.column = column_const->removeLowCardinality()->cloneResized(num_rows); column.column = column_const->removeLowCardinality()->cloneResized(num_rows);
if (auto * low_cardinality_type = checkAndGetDataType<DataTypeLowCardinality>(column.type.get())) column.type = removeLowCardinality(column.type);
column.type = removeLowCardinality() ///low_cardinality_type->getDictionaryType();
} }
else if (auto * low_cardinality_column = checkAndGetColumn<ColumnLowCardinality>(column.column.get())) else if (auto * low_cardinality_column = checkAndGetColumn<ColumnLowCardinality>(column.column.get()))
{ {