diff --git a/velox/exec/Spiller.cpp b/velox/exec/Spiller.cpp index cf5a16351ab6..3ffb6fd7fbd9 100644 --- a/velox/exec/Spiller.cpp +++ b/velox/exec/Spiller.cpp @@ -623,7 +623,7 @@ void Spiller::fillSpillRun(std::vector& rows) { MicrosecondTimer timer(&execTimeUs); spillRuns_[0].rows = SpillRows(rows.begin(), rows.end(), spillRuns_[0].rows.get_allocator()); - for (const auto& row : rows) { + for (const auto* row : rows) { spillRuns_[0].numBytes += container_->rowSize(row); } }