Fixed size for LowCardinality dictionary permutation.

This commit is contained in:
Nikolai Kochetov 2018-11-27 21:08:54 +03:00
parent e793a27cc3
commit 65e5494326

View File

@ -259,7 +259,7 @@ void ColumnLowCardinality::getPermutation(bool reverse, size_t limit, int nan_di
if (limit == 0)
limit = size();
size_t unique_limit = std::min(limit, getDictionary().size());
size_t unique_limit = getDictionary().size();
Permutation unique_perm;
getDictionary().getNestedColumn()->getPermutation(reverse, unique_limit, nan_direction_hint, unique_perm);