Fixed ColumnWithDictionsry insert functions. Added insertFromFullColumn and insertRangeFromFullColumn.

This commit is contained in:
Nikolai Kochetov 2018-05-04 13:58:28 +03:00
parent 9c696f40b9
commit c61049dc59

View File

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