jorisvandenbossche opened a new issue, #43507: URL: https://github.com/apache/arrow/issues/43507
As a follow-up on https://github.com/apache/arrow/issues/41664 (PR https://github.com/apache/arrow/pull/42010), which ensured to copy data to the CPU when trying to pretty print it. But, the PR was using `CopyTo` when the data was not using a CPU device allocation type, i.e.: ```cpp if (array.device_type() != DeviceAllocationType::kCPU) { ARROW_ASSIGN_OR_RAISE(auto array_cpu, array.CopyTo(default_cpu_memory_manager())); ... ``` But this should better use `ViewOrCopyTo`, in case the data can be viewed as CPU data without a copy. -- 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: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org