andishgar commented on issue #46578: URL: https://github.com/apache/arrow/issues/46578#issuecomment-2908870300
It's possible to create an arrow::Array from multiple `arrow::Buffer` instances via `arrow::ArrayData`, and each `arrow::Buffer` can have its own memory manager, and device allocation type. the behavior of ` arrow::ArrayData::ViewOrCopyTo` depends on the behavior of MemoryManager fo `to `[parameter](https://github.com/apache/arrow/blob/cfff4d5b848ba551959d92c2631c582e8508241e/cpp/src/arrow/array/data.cc#L179-L182) in `arrow::ArrayData::ViewOrCopyTo` and MemoryManager and DeviceAllocationType type of a buffer according to below codes https://github.com/apache/arrow/blob/cfff4d5b848ba551959d92c2631c582e8508241e/cpp/src/arrow/device.cc#L103-L117 https://github.com/apache/arrow/blob/cfff4d5b848ba551959d92c2631c582e8508241e/cpp/src/arrow/device.cc#L221-L234. 1. Are there any practical examples where an `arrow::Array` contains buffers from different memory managers and device allocation type, or is this scenario purely theoretical? -- 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