MCPcopy Create free account
hub / github.com/bytedance/bolt / updateEstimatedOutputRowSize

Method updateEstimatedOutputRowSize

bolt/exec/HashAggregation.cpp:808–821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806 }
807 output_ = nullptr;
808}
809
810void 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

Callers

nothing calls this directly

Calls 3

has_valueMethod · 0.80
estimateOutputRowSizeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected