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

Method Finalize

cpp/src/arrow/compute/kernels/aggregate_basic.cc:573–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571 }
572
573 Status Finalize(KernelContext* ctx, Datum* out) override {
574 if ((!options.skip_nulls && !this->any && this->has_nulls) ||
575 this->count < options.min_count) {
576 out->value = std::make_shared<BooleanScalar>();
577 } else {
578 out->value = std::make_shared<BooleanScalar>(this->any);
579 }
580 return Status::OK();
581 }
582
583 bool any = false;
584 bool has_nulls = false;

Callers

nothing calls this directly

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected