| 830 | } |
| 831 | |
| 832 | static Status ArrayScalar(KernelContext* ctx, const ArraySpan& arg0, const Scalar& arg1, |
| 833 | ExecResult* out) { |
| 834 | Status st = Status::OK(); |
| 835 | ArrayIterator<Arg0Type> arg0_it(arg0); |
| 836 | auto arg1_val = UnboxScalar<Arg1Type>::Unbox(arg1); |
| 837 | RETURN_NOT_OK( |
| 838 | OutputAdapter<OutType>::Write(ctx, out->array_span_mutable(), [&]() -> OutValue { |
| 839 | return Op::template Call<OutValue, Arg0Value, Arg1Value>(ctx, arg0_it(), |
| 840 | arg1_val, &st); |
| 841 | })); |
| 842 | return st; |
| 843 | } |
| 844 | |
| 845 | static Status ScalarArray(KernelContext* ctx, const Scalar& arg0, const ArraySpan& arg1, |
| 846 | ExecResult* out) { |