diff --git a/presto-native-execution/presto_cpp/main/PeriodicTaskManager.cpp b/presto-native-execution/presto_cpp/main/PeriodicTaskManager.cpp index 536857bc217c3..67176ce0b8ab3 100644 --- a/presto-native-execution/presto_cpp/main/PeriodicTaskManager.cpp +++ b/presto-native-execution/presto_cpp/main/PeriodicTaskManager.cpp @@ -565,8 +565,7 @@ void PeriodicTaskManager::addSpillStatsUpdateTask() { } void PeriodicTaskManager::updateSpillStatsTask() { -#if 0 - const auto updatedSpillStats = velox::exec::globalSpillStats(); + const auto updatedSpillStats = velox::common::globalSpillStats(); VELOX_CHECK_GE(updatedSpillStats, lastSpillStats_); const auto deltaSpillStats = updatedSpillStats - lastSpillStats_; REPORT_IF_NOT_ZERO(kCounterSpillRuns, deltaSpillStats.spillRuns); @@ -602,7 +601,6 @@ void PeriodicTaskManager::updateSpillStatsTask() { kCounterSpillPeakMemoryBytes, spillMemoryStats.peakBytes); lastSpillStats_ = updatedSpillStats; -#endif } void PeriodicTaskManager::printHttpEndpointLatencyStats() { diff --git a/presto-native-execution/presto_cpp/main/PeriodicTaskManager.h b/presto-native-execution/presto_cpp/main/PeriodicTaskManager.h index fb1d91ee3f197..12dc1fa695bea 100644 --- a/presto-native-execution/presto_cpp/main/PeriodicTaskManager.h +++ b/presto-native-execution/presto_cpp/main/PeriodicTaskManager.h @@ -143,9 +143,7 @@ class PeriodicTaskManager { int64_t lastVoluntaryContextSwitches_{0}; int64_t lastForcedContextSwitches_{0}; // Renabled this after update velox. -#if 0 - velox::exec::SpillStats lastSpillStats_; -#endif + velox::common::SpillStats lastSpillStats_; velox::memory::MemoryArbitrator::Stats lastArbitratorStats_; }; diff --git a/presto-native-execution/velox b/presto-native-execution/velox index f0c115845b8ea..3f3cb608a51b2 160000 --- a/presto-native-execution/velox +++ b/presto-native-execution/velox @@ -1 +1 @@ -Subproject commit f0c115845b8eab2ad9b36ebc94a08feab38618a7 +Subproject commit 3f3cb608a51b207af389cec92ef3fc0252f516b2