Skip to content

Commit

Permalink
Update cpp/src/arrow/pretty_print.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Felipe Oliveira Carvalho <[email protected]>
  • Loading branch information
jorisvandenbossche and felipecrv authored Jun 26, 2024
1 parent fe82b3e commit c65c7a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/src/arrow/pretty_print.cc
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ class ArrayPrinter : public PrettyPrinter {

Status Print(const Array& array) {
if (array.device_type() != DeviceAllocationType::kCPU) {
// TODO: ideally we only copy start/end slice based on the window size that is being
// printed (requires CopyTo for slices https://github.com/apache/arrow/issues/43055)
// GH-43055: ideally we only copy start/end slices from non-CPU memory
// based on the window size that is being printed
ARROW_ASSIGN_OR_RAISE(auto array_cpu, array.CopyTo(default_cpu_memory_manager()));
RETURN_NOT_OK(VisitArrayInline(*array_cpu, this));
} else {
Expand Down

0 comments on commit c65c7a5

Please sign in to comment.