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

Function ExecAddInt32

cpp/src/arrow/compute/exec_test.cc:1006–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006Status ExecAddInt32(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
1007 const int32_t* left_data = batch[0].array.GetValues<int32_t>(1);
1008 const int32_t* right_data = batch[1].array.GetValues<int32_t>(1);
1009 int32_t* out_data = out->array_span_mutable()->GetValues<int32_t>(1);
1010 for (int64_t i = 0; i < batch.length; ++i) {
1011 *out_data++ = *left_data++ + *right_data++;
1012 }
1013 return Status::OK();
1014}
1015
1016class TestCallScalarFunction : public TestComputeInternals {
1017 protected:

Callers

nothing calls this directly

Calls 1

OKFunction · 0.50

Tested by

no test coverage detected