mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Merge pull request #50285 from ucasfl/uniqExactIf
Parallel merge of uniqExactIf states
This commit is contained in:
commit
3cc9feafc2
@ -152,6 +152,13 @@ public:
|
|||||||
nested_func->merge(place, rhs, arena);
|
nested_func->merge(place, rhs, arena);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isAbleToParallelizeMerge() const override { return nested_func->isAbleToParallelizeMerge(); }
|
||||||
|
|
||||||
|
void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs, ThreadPool & thread_pool, Arena * arena) const override
|
||||||
|
{
|
||||||
|
nested_func->merge(place, rhs, thread_pool, arena);
|
||||||
|
}
|
||||||
|
|
||||||
void mergeBatch(
|
void mergeBatch(
|
||||||
size_t row_begin,
|
size_t row_begin,
|
||||||
size_t row_end,
|
size_t row_end,
|
||||||
|
3
tests/performance/uniqExactIf.xml
Normal file
3
tests/performance/uniqExactIf.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<test>
|
||||||
|
<query>SELECT uniqExactIf(number, 1) FROM numbers_mt(1e6)</query>
|
||||||
|
</test>
|
Loading…
Reference in New Issue
Block a user