edponce commented on PR #13009: URL: https://github.com/apache/arrow/pull/13009#issuecomment-1113603762
@pitrou @lidavidm I see now the issue with typing and `ChunkedArray`. Related to this, @AlvinJ15 attempted to add `ChunkedArrayIterator` as a friend class to `ChunkedArray`, but `ChunkedArrayIterator` requires the `ArrayType` template parameter. `ChunkedArray` is agnostic of the `Array` type which `ChunkedArrayIterator` requires. Nevertheless, we can get the `ArrayType` via `TypeTraits` if we have the data type at compile-time. [Specialized `Arrays` have the `TypeClass` attribute](https://github.com/apache/arrow/blob/master/cpp/src/arrow/array/array_primitive.h#L41) which would work, but this attribute is not part of the base `Array` class which is what `ChunkedArray` works with. If we could add a `TypeClass` attribute to base `Array` then I think we are good, but what value would it have? Other ideas? -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org