jorisvandenbossche opened a new pull request, #43508:
URL: https://github.com/apache/arrow/pull/43508

   ### Rationale for this change
   
   When ensuring the data we are pretty-printing is on the CPU, we can use 
`ViewOrCopyTo` instead of `CopyTo`, in case the data can be viewed as CPU data 
without a copy.
   
   ### Are these changes tested?
   
   Yes (I added a test that uses CUDA host memory, which should be a case where 
it can be viewed and doesn't need to be copied, but of course the test it not 
actually ensuring we avoid the copy, just that the printing works)
   
   ### Are there any user-facing changes?
   
   No


-- 
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]

Reply via email to