tustvold commented on code in PR #4387:
URL: https://github.com/apache/arrow-rs/pull/4387#discussion_r1222963328
##########
arrow-schema/src/field.rs:
##########
@@ -543,10 +543,29 @@ impl Field {
}
}
-// TODO: improve display with crate https://crates.io/crates/derive_more ?
+impl std::fmt::Debug for Field {
+ fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
+ match &self.data_type {
+ DataType::Dictionary(_, _) => write!(f, "{self:?}"),
Review Comment:
As pointed out by clippy this will recurse infinitely
--
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]