kou commented on code in PR #37981:
URL: https://github.com/apache/arrow/pull/37981#discussion_r1345016394


##########
cpp/src/arrow/pretty_print.h:
##########
@@ -77,6 +77,9 @@ struct PrettyPrintOptions {
 
   /// If true, display schema metadata when pretty-printing a Schema
   bool show_schema_metadata = true;
+
+  /// Delimiter for separating individual elements of an Array (e.g. ",")
+  std::string array_element_delimiter = ",";

Review Comment:
   Interesting.
   
   Then how about the following? I want to try simplifying your idea.
   
   ```cpp
   struct PrettyPrintDelimiters {
     std::string open = "[";
     std::string close = "]";
     std::string element = ",";
   };
   
   struct PrettyPrintOptions {
     // ...
     PrettyPrintDelimiters array_delimiters = PrettyPrintDelimiters::Defaults();
     PrettyPrintDelimiters chunked_array_delimiters = 
PrettyPrintDelimiters::Defaults();
     // ...
   };
   ```



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