tustvold commented on issue #1811: URL: https://github.com/apache/arrow-rs/issues/1811#issuecomment-1148604771
The TLDR is * ArrayData stores untyped ref-counted buffers of bytes inline with the arrow specification * We want to provide a safe, strongly typed array interface to users (Array) * We want to perform alignment, etc... checks once on creation * We therefore construct typed RawPtrBox that reference the bytes owned by the Buffers stored in ArrayData on construction of an Array Whilst I write this I realise we could encapsulate the self-referential shenanigans in a typed buffer abstraction. I'll update the issue 👍 -- 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