diff --git a/src/Processors/QueryPlan/Optimizations/enableMemoryBoundMerging.cpp b/src/Processors/QueryPlan/Optimizations/enableMemoryBoundMerging.cpp index b205d054d76..83d6e08d3c9 100644 --- a/src/Processors/QueryPlan/Optimizations/enableMemoryBoundMerging.cpp +++ b/src/Processors/QueryPlan/Optimizations/enableMemoryBoundMerging.cpp @@ -67,7 +67,7 @@ void enableMemoryBoundMerging(QueryPlan::Node & node) { if (mergine_aggeregated->memoryBoundMergingWillBeUsed()) { - sort_description = mergine_aggeregated->getSortDescription(); + sort_description = mergine_aggeregated->getGroupBySortDescription(); } }