Skip to content

Commit

Permalink
Fix flaky spill stats check in aggregation test
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxmeng committed Apr 11, 2024
1 parent a3b4849 commit 1fa1ca3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void AggregationTestBase::testAggregationsWithCompanion(
toPlanStats(task->taskStats()).at(partialNodeId).inputRows;
const auto finalInputRows =
toPlanStats(task->taskStats()).at(finalNodeId).inputRows;
if (partialInputRows > 1) {
if (exec::injectedSpillCount() > 0) {
EXPECT_LT(0, spilledBytes(*task))
<< "partial inputRows: " << partialInputRows
<< " final inputRows: " << finalInputRows
Expand Down Expand Up @@ -854,7 +854,7 @@ void AggregationTestBase::testAggregationsImpl(
toPlanStats(task->taskStats()).at(partialNodeId).inputRows;
const auto finalInputRows =
toPlanStats(task->taskStats()).at(finalNodeId).inputRows;
if (partialInputRows > 1) {
if (exec::injectedSpillCount() > 0) {
EXPECT_LT(0, spilledBytes(*task))
<< "partial inputRows: " << partialInputRows
<< " final inputRows: " << finalInputRows
Expand Down

0 comments on commit 1fa1ca3

Please sign in to comment.