diff --git a/velox/exec/tests/AggregationTest.cpp b/velox/exec/tests/AggregationTest.cpp index 342f1967e133..c6ca94e6f26e 100644 --- a/velox/exec/tests/AggregationTest.cpp +++ b/velox/exec/tests/AggregationTest.cpp @@ -718,7 +718,9 @@ TEST_F(AggregationTest, hashmodes) { op, "SELECT c0, c1, C2, C3, C4, C5, sum(1) FROM tmp " " GROUP BY c0, c1, c2, c3, c4, c5"); +#ifndef NDEBUG EXPECT_EQ(mode, BaseHashTable::HashMode::kHash); +#endif } TEST_F(AggregationTest, rangeToDistinct) {