From eb0cf98f543febb47d59bcc614bf7a1e185721ba Mon Sep 17 00:00:00 2001 From: Hongze Zhang Date: Fri, 28 Jun 2024 09:53:50 +0800 Subject: [PATCH] fixup --- cpp/velox/compute/WholeStageResultIterator.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cpp/velox/compute/WholeStageResultIterator.cc b/cpp/velox/compute/WholeStageResultIterator.cc index 5920a08985f4..cbc6c838b1b7 100644 --- a/cpp/velox/compute/WholeStageResultIterator.cc +++ b/cpp/velox/compute/WholeStageResultIterator.cc @@ -83,8 +83,13 @@ WholeStageResultIterator::WholeStageResultIterator( std::unordered_set emptySet; velox::core::PlanFragment planFragment{planNode, velox::core::ExecutionStrategy::kUngrouped, 1, emptySet}; std::shared_ptr queryCtx = createNewVeloxQueryCtx(); + static std::atomic vtId{0}; // Velox task ID to distinguish from Spark task ID. task_ = velox::exec::Task::create( - fmt::format("Gluten_Stage_{}_TID_{}", std::to_string(taskInfo_.stageId), std::to_string(taskInfo_.taskId)), + fmt::format( + "Gluten_Stage_{}_TID_{}_VTID_{}", + std::to_string(taskInfo_.stageId), + std::to_string(taskInfo_.taskId), + std::to_string(vtId++)), std::move(planFragment), 0, std::move(queryCtx),