bkietz commented on code in PR #37646:
URL: https://github.com/apache/arrow/pull/37646#discussion_r1321609173


##########
cpp/src/arrow/datum.cc:
##########
@@ -182,15 +182,15 @@ std::string Datum::ToString() const {
     case Datum::NONE:
       return "nullptr";
     case Datum::SCALAR:
-      return "Scalar";
+      return "Scalar(" + scalar()->ToString() + ")";
     case Datum::ARRAY:
-      return "Array";
+      return "Array(" + make_array()->ToString() + ")";

Review Comment:
   Unfortunately I don't think so. It won't be an `O(N)` copy or anything 
though, so not the end of the world.



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