commit | b35e7ddbefe394ab7e5a6b1c3f3bb476cdc800f2 | [log] [tgz] |
---|---|---|
author | Joris Van den Bossche <jorisvandenbossche@gmail.com> | Fri Aug 02 02:10:00 2024 +0200 |
committer | GitHub <noreply@github.com> | Fri Aug 02 09:10:00 2024 +0900 |
tree | 3d87a0059dabfc865ef17afb8dcb4ea8fea43a2d | |
parent | 0b9f06c78ca549ee3a3aed91b58de740ed90f12e [diff] |
GH-43507: [C++] Use ViewOrCopyTo instead of CopyTo when pretty printing non-CPU data (#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 * GitHub Issue: #43507 Authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Apache Arrow is a development platform for in-memory analytics. It contains a set of technologies that enable big data systems to process and move data fast.
Major components of the project include:
Arrow is an Apache Software Foundation project. Learn more at arrow.apache.org.
The reference Arrow libraries contain many distinct software components:
The official Arrow libraries in this repository are in different stages of implementing the Arrow format and related features. See our current feature matrix on git main.
Please read our latest project contribution guide.
Even if you do not plan to contribute to Apache Arrow itself or Arrow integrations in other projects, we'd be happy to have you involved: