Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion arrow-schema/src/datatype_display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, ", ")?;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow empty union to be displayed like Union(Dense), instead of Union(Dense, )

let fields_str = union_fields
.iter()
.map(|v| {
Expand Down
Loading
Loading