Separate fixed key hash map context creator (#25438)

Separate fixed key hash map context creator
This commit is contained in:
Pxl
2023-10-16 11:20:30 +08:00
committed by GitHub
parent c482c22a74
commit d00d029ffb
36 changed files with 259 additions and 1177 deletions

View File

@ -87,8 +87,8 @@ void DistinctAggregationNode::_emplace_into_hash_table_to_distinct(IColumn::Sele
SCOPED_TIMER(_hash_table_compute_timer);
using HashMethodType = std::decay_t<decltype(agg_method)>;
using AggState = typename HashMethodType::State;
AggState state(key_columns, _probe_key_sz);
agg_method.init_serialized_keys(key_columns, _probe_key_sz, num_rows);
AggState state(key_columns);
agg_method.init_serialized_keys(key_columns, num_rows);
size_t row = 0;
auto creator = [&](const auto& ctor, auto& key, auto& origin) {