alamb commented on code in PR #7051:
URL: https://github.com/apache/arrow-rs/pull/7051#discussion_r1938279517


##########
arrow-schema/src/datatype.rs:
##########
@@ -458,7 +458,16 @@ pub enum UnionMode {
 
 impl fmt::Display for DataType {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
-        write!(f, "{self:?}")
+        match self {
+            DataType::List(field) => {

Review Comment:
   Right -- so if `field.name() != "item"` perhaps it could look like
   
   ```
   List(Int8;N, field='foo')
   ```
   
   Likewise, if there is metadata I think it should also be displayed like
   ```
   List(Int8;N, field='foo', metadata)
   ```



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to