From c65c7a56808d781de6f66921cb38a57b51361262 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Wed, 26 Jun 2024 16:41:42 +0200 Subject: [PATCH] Update cpp/src/arrow/pretty_print.cc Co-authored-by: Felipe Oliveira Carvalho --- cpp/src/arrow/pretty_print.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/arrow/pretty_print.cc b/cpp/src/arrow/pretty_print.cc index 33dc23d8d0d4b..53a6953681660 100644 --- a/cpp/src/arrow/pretty_print.cc +++ b/cpp/src/arrow/pretty_print.cc @@ -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 {