mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
If aggregation step is in order, - do not remove underneath sorting step
This commit is contained in:
parent
fdb277245c
commit
919fa9b84e
@ -219,6 +219,9 @@ private:
|
||||
/// (1) aggregation
|
||||
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;
|
||||
for (const auto & aggregate : aggregates)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user