Skip to content

Commit d48bf0d

Browse files
authored
feat: parse DataType::Union, DataType::Map, DataType::RunEndEncoded (#8765)
# Which issue does this PR close? - Closes #8648 # Rationale for this change Parse `DataType::Union`, `DataType::Map` and `DataType::RunEndEncoded`. # What changes are included in this PR? - Add `parse_union`, `parse_map`, and `parse_run_encoded`. - Refactor `parse_list_field_name` -> `parse_list_field` to remove duplicated codes. # Are these changes tested? Yes, new test added. # Are there any user-facing changes? Yes. Relate to #8351
1 parent f9dd799 commit d48bf0d

File tree

2 files changed

+238
-63
lines changed

2 files changed

+238
-63
lines changed

arrow-schema/src/datatype_display.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ impl fmt::Display for DataType {
135135
Ok(())
136136
}
137137
Self::Union(union_fields, union_mode) => {
138-
write!(f, "Union({union_mode:?}, ")?;
138+
write!(f, "Union({union_mode:?}")?;
139139
if !union_fields.is_empty() {
140+
write!(f, ", ")?;
140141
let fields_str = union_fields
141142
.iter()
142143
.map(|v| {

0 commit comments

Comments
 (0)