added DataTypeWithDictionary serialization per granule

This commit is contained in:
Nikolai Kochetov 2018-05-04 23:15:56 +03:00
parent ad9cdee06a
commit 361d1193cb

View File

@ -80,7 +80,7 @@ void DataTypeWithDictionary::serializeBinaryBulkWithMultipleStreams(
const auto & indexes = column_with_dictionary.getIndexesPtr();
const auto & keys = column_with_dictionary.getUnique()->getNestedColumn();
sub_index = (*indexes->cut(offset, limit - offset)).mutate();
ColumnPtr unique_indexes = makeSubIndex(sub_index);
ColumnPtr unique_indexes = makeSubIndex(*sub_index);
auto used_keys = keys->index(unique_indexes, 0);
UInt64 used_keys_size = used_keys->size();