MCPcopy Create free account
hub / github.com/apache/arrow / ToStringExtra

Method ToStringExtra

cpp/src/arrow/acero/groupby_aggregate_node.cc:406–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406std::string GroupByNode::ToStringExtra(int indent) const {
407 std::stringstream ss;
408 const auto input_schema = inputs_[0]->output_schema();
409 ss << "keys=[";
410 for (size_t i = 0; i < key_field_ids_.size(); i++) {
411 if (i > 0) ss << ", ";
412 ss << '"' << input_schema->field(key_field_ids_[i])->name() << '"';
413 }
414 ss << "], ";
415 AggregatesToString(&ss, *input_schema, aggs_, agg_src_fieldsets_, indent);
416 return ss.str();
417}
418
419Status GroupByNode::InitLocalStateIfNeeded(ThreadLocalState* state) {
420 // Get input schema

Callers

nothing calls this directly

Calls 5

AggregatesToStringFunction · 0.85
strMethod · 0.80
sizeMethod · 0.45
nameMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected