| 806 | } |
| 807 | output_ = nullptr; |
| 808 | } |
| 809 | |
| 810 | void HashAggregation::updateEstimatedOutputRowSize() { |
| 811 | const auto optionalRowSize = groupingSet_->estimateOutputRowSize(); |
| 812 | if (!optionalRowSize.has_value()) { |
| 813 | return; |
| 814 | } |
| 815 | |
| 816 | const auto rowSize = optionalRowSize.value(); |
| 817 | |
| 818 | if (!estimatedOutputRowSize_.has_value()) { |
| 819 | estimatedOutputRowSize_ = rowSize; |
| 820 | } else if (rowSize > estimatedOutputRowSize_.value()) { |
| 821 | estimatedOutputRowSize_ = rowSize; |
| 822 | } |
| 823 | } |
| 824 | } // namespace bytedance::bolt::exec |
nothing calls this directly
no test coverage detected