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

Function FixedSizeListValueLength

cpp/src/arrow/compute/kernels/scalar_nested.cc:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63Status FixedSizeListValueLength(KernelContext* ctx, const ExecSpan& batch,
64 ExecResult* out) {
65 auto width = checked_cast<const FixedSizeListType&>(*batch[0].type()).list_size();
66 const ArraySpan& arr = batch[0].array;
67 ArraySpan* out_arr = out->array_span_mutable();
68 int32_t* out_values = out_arr->GetValues<int32_t>(1);
69 std::fill(out_values, out_values + arr.length, width);
70 return Status::OK();
71}
72
73template <typename InListType>
74void AddListValueLengthKernel(ScalarFunction* func,

Callers

nothing calls this directly

Calls 3

OKFunction · 0.50
list_sizeMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected