| 843 | } |
| 844 | |
| 845 | static Status ScalarArray(KernelContext* ctx, const Scalar& arg0, const ArraySpan& arg1, |
| 846 | ExecResult* out) { |
| 847 | Status st = Status::OK(); |
| 848 | auto arg0_val = UnboxScalar<Arg0Type>::Unbox(arg0); |
| 849 | ArrayIterator<Arg1Type> arg1_it(arg1); |
| 850 | RETURN_NOT_OK( |
| 851 | OutputAdapter<OutType>::Write(ctx, out->array_span_mutable(), [&]() -> OutValue { |
| 852 | return Op::template Call<OutValue, Arg0Value, Arg1Value>(ctx, arg0_val, |
| 853 | arg1_it(), &st); |
| 854 | })); |
| 855 | return st; |
| 856 | } |
| 857 | |
| 858 | static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 859 | if (batch[0].is_array()) { |