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


##########
arrow-schema/src/field.rs:
##########
@@ -60,6 +60,46 @@ pub struct Field {
     metadata: HashMap<String, String>,
 }
 
+impl std::fmt::Debug for Field {
+    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+        #![expect(deprecated)] // Must still print dict_id, if set
+        let Self {
+            name,
+            data_type,
+            nullable,
+            dict_id,
+            dict_is_ordered,
+            metadata,
+        } = self;
+
+        let mut s = f.debug_struct("Field");
+
+        if name != "item" {

Review Comment:
   this makes sense not to print the "standard" item naame



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