| 1004 | } |
| 1005 | |
| 1006 | Status 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 | |
| 1016 | class TestCallScalarFunction : public TestComputeInternals { |
| 1017 | protected: |