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

Method Consume

python/pyarrow/src/arrow/python/udf.cc:150–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 };
149
150 Status Consume(compute::KernelContext* ctx, const compute::ExecSpan& batch) override {
151 ARROW_ASSIGN_OR_RAISE(
152 auto rb, batch.ToExecBatch().ToRecordBatch(input_schema, ctx->memory_pool()));
153 values.push_back(std::move(rb));
154 return Status::OK();
155 }
156
157 Status MergeFrom(compute::KernelContext* ctx, compute::KernelState&& src) override {
158 auto& other_values = checked_cast<PythonUdfScalarAggregatorImpl&>(src).values;

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.80
OKFunction · 0.50

Tested by

no test coverage detected