dqkqd commented on code in PR #8765:
URL: https://github.com/apache/arrow-rs/pull/8765#discussion_r2484111667
##########
arrow-schema/src/datatype_display.rs:
##########
@@ -139,8 +139,9 @@ impl fmt::Display for DataType {
Ok(())
}
Self::Union(union_fields, union_mode) => {
- write!(f, "Union({union_mode:?}, ")?;
+ write!(f, "Union({union_mode:?}")?;
if !union_fields.is_empty() {
+ write!(f, ", ")?;
Review Comment:
Allow empty union to be displayed like `Union(Dense)`, instead of
`Union(Dense, )`
--
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]