mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Small changes
This commit is contained in:
parent
4d399fff3e
commit
cf3f39ed29
@ -316,9 +316,7 @@ void ColumnLowCardinality::getPermutationImpl(bool reverse, size_t limit, int na
|
|||||||
size_t unique_limit = getDictionary().size();
|
size_t unique_limit = getDictionary().size();
|
||||||
Permutation unique_perm;
|
Permutation unique_perm;
|
||||||
if (collator)
|
if (collator)
|
||||||
{
|
|
||||||
getDictionary().getNestedColumn()->getPermutationWithCollation(*collator, reverse, unique_limit, nan_direction_hint, unique_perm);
|
getDictionary().getNestedColumn()->getPermutationWithCollation(*collator, reverse, unique_limit, nan_direction_hint, unique_perm);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
getDictionary().getNestedColumn()->getPermutation(reverse, unique_limit, nan_direction_hint, unique_perm);
|
getDictionary().getNestedColumn()->getPermutation(reverse, unique_limit, nan_direction_hint, unique_perm);
|
||||||
|
|
||||||
|
@ -275,9 +275,7 @@ void ColumnNullable::getPermutationImpl(bool reverse, size_t limit, int null_dir
|
|||||||
/// Cannot pass limit because of unknown amount of NULLs.
|
/// Cannot pass limit because of unknown amount of NULLs.
|
||||||
|
|
||||||
if (collator)
|
if (collator)
|
||||||
{
|
|
||||||
getNestedColumn().getPermutationWithCollation(*collator, reverse, 0, null_direction_hint, res);
|
getNestedColumn().getPermutationWithCollation(*collator, reverse, 0, null_direction_hint, res);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
getNestedColumn().getPermutation(reverse, 0, null_direction_hint, res);
|
getNestedColumn().getPermutation(reverse, 0, null_direction_hint, res);
|
||||||
|
|
||||||
@ -453,9 +451,7 @@ void ColumnNullable::updatePermutationImpl(bool reverse, size_t limit, int null_
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (collator)
|
if (collator)
|
||||||
{
|
|
||||||
getNestedColumn().updatePermutationWithCollation(*collator, reverse, limit, null_direction_hint, res, new_ranges);
|
getNestedColumn().updatePermutationWithCollation(*collator, reverse, limit, null_direction_hint, res, new_ranges);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
getNestedColumn().updatePermutation(reverse, limit, null_direction_hint, res, new_ranges);
|
getNestedColumn().updatePermutation(reverse, limit, null_direction_hint, res, new_ranges);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user