| 924 | } |
| 925 | |
| 926 | Status ExecNoPreallocatedData(KernelContext* ctx, const ExecSpan& batch, |
| 927 | ExecResult* out) { |
| 928 | // Validity preallocated, but not the data |
| 929 | ArrayData* out_arr = out->array_data().get(); |
| 930 | DCHECK_EQ(0, out_arr->offset); |
| 931 | int value_size = batch[0].type()->byte_width(); |
| 932 | Status s = (ctx->Allocate(out_arr->length * value_size).Value(&out_arr->buffers[1])); |
| 933 | DCHECK_OK(s); |
| 934 | return ExecCopyArrayData(ctx, batch, out); |
| 935 | } |
| 936 | |
| 937 | Status ExecNoPreallocatedAnything(KernelContext* ctx, const ExecSpan& batch, |
| 938 | ExecResult* out) { |
no test coverage detected