tustvold commented on issue #1640: URL: https://github.com/apache/arrow-rs/issues/1640#issuecomment-1117136342
The only major thing that comes to mind is how this would interact with IPC which doesn't make the same distinction. FWIW my 2 cents is that users shouldn't be interacting with ArrayData at all, and arrow-rs should instead provide builders, `from_iter`, etc... that abstract this away. These can potentially also ensure they construct valid data without a potentially expensive validation step. I could definitely see a world where we eventually make ArrayData an implementation detail, and people only interact with strongly typed Arrays a 'la arrow2. In the case of your example, there is a `GenericListArray::from_iter_primitive`, but perhaps we should add a more general purpose `try_new` constructor, like `UnionArray::try_new`, or possibly a `GenericListArrayBuilder`? -- 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]
