Skip to content

Commit 774b91b

Browse files
authored
minor refactor to avoid repeated code (#2222)
1 parent 8058fbb commit 774b91b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

datafusion/common/src/dfschema.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,14 +324,7 @@ impl DFSchema {
324324
fields: self
325325
.fields
326326
.into_iter()
327-
.map(|f| {
328-
DFField::new(
329-
Some(qualifier),
330-
f.name(),
331-
f.data_type().to_owned(),
332-
f.is_nullable(),
333-
)
334-
})
327+
.map(|f| DFField::from_qualified(qualifier, f.field))
335328
.collect(),
336329
..self
337330
}

0 commit comments

Comments
 (0)