Skip to content

Commit

Permalink
Re-enable TaskManagerTest.aggregationSpill
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjialiang committed Mar 6, 2024
1 parent 68c507d commit 03a19b0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ TEST_F(TaskManagerTest, timeoutOutOfOrderRequests) {
.getVia(eventBase));
}

TEST_F(TaskManagerTest, DISABLED_aggregationSpill) {
TEST_F(TaskManagerTest, aggregationSpill) {
// NOTE: we need to write more than one batches to each file (source split) to
// trigger spill.
const int numBatchesPerFile = 5;
Expand All @@ -1132,15 +1132,16 @@ TEST_F(TaskManagerTest, DISABLED_aggregationSpill) {
std::shared_ptr<exec::test::TempDirectoryPath> spillDirectory;
std::map<std::string, std::string> queryConfigs;

int32_t spillPct{0};
if (doSpill) {
spillDirectory = TaskManagerTest::setupSpillPath();
taskManager_->setBaseSpillDirectory(spillDirectory->path);
// TODO(jtan6): use TestScopedSpillInjection after velox PR lands and
// re-enable the test.
spillPct = 100;
queryConfigs.emplace(core::QueryConfig::kSpillEnabled, "true");
queryConfigs.emplace(core::QueryConfig::kAggregationSpillEnabled, "true");
}

TestScopedSpillInjection scopedSpillInjection(spillPct);
testCountAggregation(
fmt::format("aggregationSpill:{}", queryId++),
filePaths,
Expand Down

0 comments on commit 03a19b0

Please sign in to comment.