mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fixed error
This commit is contained in:
parent
73dd78bac1
commit
282b5785c1
@ -772,7 +772,7 @@ BlockInputStreamPtr HashedDictionary::getBlockInputStream(const Names & column_n
|
||||
|
||||
void registerDictionaryHashed(DictionaryFactory & factory)
|
||||
{
|
||||
auto create_layout = [=](const std::string & full_name,
|
||||
auto create_layout = [](const std::string & full_name,
|
||||
const DictionaryStructure & dict_struct,
|
||||
const Poco::Util::AbstractConfiguration & config,
|
||||
const std::string & config_prefix,
|
||||
@ -796,9 +796,9 @@ void registerDictionaryHashed(DictionaryFactory & factory)
|
||||
};
|
||||
using namespace std::placeholders;
|
||||
factory.registerLayout("hashed",
|
||||
[&](auto && a, auto && b, auto && c, auto && d, DictionarySourcePtr e){ return create_layout(a, b, c, d, std::move(e), /* sparse = */ false); }, false);
|
||||
[=](auto && a, auto && b, auto && c, auto && d, DictionarySourcePtr e){ return create_layout(a, b, c, d, std::move(e), /* sparse = */ false); }, false);
|
||||
factory.registerLayout("sparse_hashed",
|
||||
[&](auto && a, auto && b, auto && c, auto && d, DictionarySourcePtr e){ return create_layout(a, b, c, d, std::move(e), /* sparse = */ true); }, false);
|
||||
[=](auto && a, auto && b, auto && c, auto && d, DictionarySourcePtr e){ return create_layout(a, b, c, d, std::move(e), /* sparse = */ true); }, false);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1683,7 +1683,8 @@ private:
|
||||
return;
|
||||
|
||||
parallel_merge_data->pool.scheduleOrThrowOnError(
|
||||
[this, group = CurrentThread::getGroup()]{ return thread(max_scheduled_bucket_num, group); });
|
||||
[this, max_scheduled_bucket_num = max_scheduled_bucket_num, group = CurrentThread::getGroup()]
|
||||
{ return thread(max_scheduled_bucket_num, group); });
|
||||
}
|
||||
|
||||
void thread(Int32 bucket_num, ThreadGroupStatusPtr thread_group)
|
||||
@ -2033,7 +2034,7 @@ void Aggregator::mergeBlocks(BucketToBlocks bucket_to_blocks, AggregatedDataVari
|
||||
result.aggregates_pools.push_back(std::make_shared<Arena>());
|
||||
Arena * aggregates_pool = result.aggregates_pools.back().get();
|
||||
|
||||
auto task = [group = CurrentThread::getGroup(), bucket, &merge_bucket, &aggregates_pool]{ return merge_bucket(bucket, aggregates_pool, group); };
|
||||
auto task = [group = CurrentThread::getGroup(), bucket, &merge_bucket, aggregates_pool]{ return merge_bucket(bucket, aggregates_pool, group); };
|
||||
|
||||
if (thread_pool)
|
||||
thread_pool->scheduleOrThrowOnError(task);
|
||||
|
Loading…
Reference in New Issue
Block a user