diff --git a/velox/exec/tests/SpillTest.cpp b/velox/exec/tests/SpillTest.cpp index 4a8d75a1d6141..b52b02c590cf4 100644 --- a/velox/exec/tests/SpillTest.cpp +++ b/velox/exec/tests/SpillTest.cpp @@ -998,7 +998,7 @@ TEST_P(SpillTest, multipleSortKeys) { 1 << 20, testData.mergePrefixComparatorEnabled, pool(), &spillStats_); ASSERT_TRUE(merge != nullptr); - const auto testMerge = [] { + const auto testMerge = [&] { for (auto i = 0; i < timeValues.size(); ++i) { auto* stream = merge->next(); ASSERT_NE(stream, nullptr);