diff --git a/cpp/velox/compute/WholeStageResultIterator.cc b/cpp/velox/compute/WholeStageResultIterator.cc index 9f2a3e4ab6e7..ae6a81ad9dc7 100644 --- a/cpp/velox/compute/WholeStageResultIterator.cc +++ b/cpp/velox/compute/WholeStageResultIterator.cc @@ -356,6 +356,7 @@ std::unordered_map WholeStageResultIterator::getQueryC } configs[velox::core::QueryConfig::kAggregationSpillEnabled] = getConfigValue(confMap_, kAggregationSpillEnabled, "true"); + configs[velox::core::QueryConfig::kPartialAggregationSpillEnabled] = "true"; configs[velox::core::QueryConfig::kJoinSpillEnabled] = getConfigValue(confMap_, kJoinSpillEnabled, "true"); configs[velox::core::QueryConfig::kOrderBySpillEnabled] = getConfigValue(confMap_, kOrderBySpillEnabled, "true"); configs[velox::core::QueryConfig::kAggregationSpillMemoryThreshold] =