If aggregation step is in order, - do not remove underneath sorting step

This commit is contained in:
Igor Nikonov 2022-12-21 12:55:42 +00:00
parent fdb277245c
commit 919fa9b84e

View File

@ -219,6 +219,9 @@ private:
/// (1) aggregation /// (1) aggregation
if (const AggregatingStep * parent_aggr = typeid_cast<AggregatingStep *>(step_affect_order); parent_aggr) if (const AggregatingStep * parent_aggr = typeid_cast<AggregatingStep *>(step_affect_order); parent_aggr)
{ {
if (parent_aggr->inOrder())
return false;
auto const & aggregates = parent_aggr->getParams().aggregates; auto const & aggregates = parent_aggr->getParams().aggregates;
for (const auto & aggregate : aggregates) for (const auto & aggregate : aggregates)
{ {