| 1963 | for (auto& aggregate : aggregates_) { |
| 1964 | if (!aggregate.sortingKeys.empty()) { |
| 1965 | continue; |
| 1966 | } |
| 1967 | aggregate.function->initializeNewGroups( |
| 1968 | rows.data(), |
| 1969 | folly::Range<const vector_size_t*>( |
| 1970 | groupIndicesOfRows_.data(), rows.size())); |
| 1971 | } |
| 1972 | |
| 1973 | if (sortedAggregations_ != nullptr) { |
| 1974 | sortedAggregations_->initializeNewGroups( |
| 1975 | rows.data(), |
| 1976 | folly::Range<const vector_size_t*>( |
| 1977 | groupIndicesOfRows_.data(), rows.size())); |
| 1978 | } |
| 1979 | } |
| 1980 | |
| 1981 | void GroupingSet::extractSpillResult( |