[Vectorized] Support order by aggregate function (#11187)

Co-authored-by: lihaopeng <lihaopeng@baidu.com>
This commit is contained in:
HappenLee
2022-07-28 09:12:58 +08:00
committed by GitHub
parent fccc5e3097
commit 0b1d06bfd6
16 changed files with 192 additions and 141 deletions

View File

@ -116,8 +116,8 @@ Status AggregationNode::init(const TPlanNode& tnode, RuntimeState* state) {
_aggregate_evaluators.reserve(tnode.agg_node.aggregate_functions.size());
for (int i = 0; i < tnode.agg_node.aggregate_functions.size(); ++i) {
AggFnEvaluator* evaluator = nullptr;
RETURN_IF_ERROR(
AggFnEvaluator::create(_pool, tnode.agg_node.aggregate_functions[i], &evaluator));
RETURN_IF_ERROR(AggFnEvaluator::create(_pool, tnode.agg_node.aggregate_functions[i],
tnode.agg_node.agg_sort_infos[i], &evaluator));
_aggregate_evaluators.push_back(evaluator);
}