From bd26242a97a35802b2ea852a03637c5aab814a59 Mon Sep 17 00:00:00 2001 From: Hongze Zhang Date: Fri, 15 Dec 2023 15:35:20 +0800 Subject: [PATCH] fixup --- velox/exec/fuzzer/AggregationFuzzerBase.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/velox/exec/fuzzer/AggregationFuzzerBase.cpp b/velox/exec/fuzzer/AggregationFuzzerBase.cpp index 162b7cf048f49..2a062ddd07ca4 100644 --- a/velox/exec/fuzzer/AggregationFuzzerBase.cpp +++ b/velox/exec/fuzzer/AggregationFuzzerBase.cpp @@ -372,20 +372,18 @@ velox::test::ResultOrError AggregationFuzzerBase::execute( builder.configs(queryConfigs_); - if (injectSpill) { + if (injectSpill || injectPartialSpill) { spillDirectory = exec::test::TempDirectoryPath::create(); builder.spillDirectory(spillDirectory->path) .config(core::QueryConfig::kSpillEnabled, "true") - .config(core::QueryConfig::kAggregationSpillEnabled, "true") - .config(core::QueryConfig::kTestingSpillPct, "100"); - } - - if (injectPartialSpill) { - spillDirectory = exec::test::TempDirectoryPath::create(); - builder.spillDirectory(spillDirectory->path) - .config(core::QueryConfig::kSpillEnabled, "true") - .config(core::QueryConfig::kPartialAggregationSpillEnabled, "true") .config(core::QueryConfig::kTestingSpillPct, "100"); + if (injectSpill) { + builder.config(core::QueryConfig::kAggregationSpillEnabled, "true"); + } + if (injectPartialSpill) { + builder.config( + core::QueryConfig::kPartialAggregationSpillEnabled, "true"); + } } if (abandonPartial) {