Fixed ColumnWithDictionsry insert functions. Added insertFromFullColumn and insertRangeFromFullColumn.

This commit is contained in:
Nikolai Kochetov 2018-05-04 13:59:19 +03:00
parent c61049dc59
commit cf60dba414

View File

@ -1859,7 +1859,7 @@ public:
const auto & arg = block.getByPosition(arg_num);
auto & res = block.getByPosition(result);
auto column = res.type->createColumn();
typeid_cast<DataTypeWithDictionary &>(*column).insertRangeFromFullColumn(*arg.column, 0, arg.column->size());
typeid_cast<ColumnWithDictionary &>(*column).insertRangeFromFullColumn(*arg.column, 0, arg.column->size());
res.column = std::move(column);
}
};