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

Method Finalize

cpp/src/arrow/compute/kernels/aggregate_basic.inc.cc:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130 }
131
132 Status Finalize(KernelContext*, Datum* out) override {
133 if ((options.skip_nulls || this->is_empty) && options.min_count == 0) {
134 // Return 0 if the remaining data is empty
135 out->value = output_empty();
136 } else {
137 out->value = MakeNullScalar(TypeTraits<ArrowType>::type_singleton());
138 }
139 return Status::OK();
140 }
141
142 virtual std::shared_ptr<Scalar> output_empty() = 0;
143

Callers

nothing calls this directly

Calls 3

MakeNullScalarFunction · 0.85
type_singletonFunction · 0.70
OKFunction · 0.50

Tested by

no test coverage detected