Merge pull request #50285 from ucasfl/uniqExactIf

Parallel merge of uniqExactIf states
This commit is contained in:
Alexey Milovidov 2023-05-29 19:42:44 +03:00 committed by GitHub
commit 3cc9feafc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -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,

View File

@ -0,0 +1,3 @@
<test>
<query>SELECT uniqExactIf(number, 1) FROM numbers_mt(1e6)</query>
</test>