| 230 | } |
| 231 | |
| 232 | bool HashAggregation::abandonPartialAggregationEarly(int64_t numOutput) const { |
| 233 | BOLT_CHECK(isPartialOutput_ && !isGlobal_); |
| 234 | if (groupingSet_->hasSpilled()) { |
| 235 | // Once spilling kicked in, disable the abandoning code path. |
| 236 | // This is because spilling only enabled when output/input is small, |
| 237 | // and abandoning in this case will cause data expansion in shuffle |
| 238 | return false; |
| 239 | } |
| 240 | return numInputRows_ > abandonPartialAggregationMinRows_ && |
| 241 | 100 * numOutput / numInputRows_ >= abandonPartialAggregationMinPct_; |
| 242 | } |
| 243 | |
| 244 | bool HashAggregation::preferPartialSpill( |
| 245 | int64_t numOutput, |
nothing calls this directly
no test coverage detected