Skip to content

Commit

Permalink
Fix AggregationTest.hashmodes test in opt mode (#7989)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #7989

`SCOPED_TESTVALUE_SET` is only working in debug mode

Reviewed By: kgpai

Differential Revision: D52088692

fbshipit-source-id: ba5937cdf22d2b5781545b4b9c8be98121faed5f
  • Loading branch information
Yuhta authored and facebook-github-bot committed Dec 12, 2023
1 parent 1ebee4a commit c7b4f35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions velox/exec/tests/AggregationTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c7b4f35

Please sign in to comment.