mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fix style
This commit is contained in:
parent
865cb74c93
commit
c2aad9754e
@ -270,14 +270,11 @@ size_t ColumnDecimal<T>::estimateNumberOfDifferent(const IColumn::Permutation &
|
||||
{
|
||||
// TODO: sample random elements
|
||||
size_t range_size = getRangeSize(range);
|
||||
if (range_size <= 1ULL) {
|
||||
if (range_size <= 1ULL)
|
||||
return range_size;
|
||||
}
|
||||
HashSet<T> elements;
|
||||
for (size_t i = range.first; i < range.second; ++i)
|
||||
{
|
||||
elements.insert(data[perm[i]]);
|
||||
}
|
||||
return elements.size();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user