lidavidm commented on a change in pull request #11127:
URL: https://github.com/apache/arrow/pull/11127#discussion_r706139239
##########
File path: cpp/src/arrow/compute/kernels/vector_nested.cc
##########
@@ -76,6 +76,24 @@ struct ListParentIndicesArray {
Status Visit(const LargeListType& type) { return VisitList(type); }
+ Status Visit(const FixedSizeListType& type) {
+ const int32_t slot_length = type.list_size();
+ const int64_t values_length = slot_length * (input->length -
input->GetNullCount());
Review comment:
GetNullCount computes the nulls, yes - look at the implementation. If it
were purely a getter it would be called `null_count`.
https://github.com/apache/arrow/blob/3bbec3f31ca16dd347b9ec88bd2b38fbf1a403b9/cpp/src/arrow/array/data.cc#L117-L129
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]