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

Function ExecNoPreallocatedData

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

Source from the content-addressed store, hash-verified

924}
925
926Status 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
937Status ExecNoPreallocatedAnything(KernelContext* ctx, const ExecSpan& batch,
938 ExecResult* out) {

Callers 1

Calls 7

ExecCopyArrayDataFunction · 0.85
array_dataMethod · 0.80
getMethod · 0.45
byte_widthMethod · 0.45
typeMethod · 0.45
ValueMethod · 0.45
AllocateMethod · 0.45

Tested by

no test coverage detected