alamb commented on code in PR #3965:
URL: https://github.com/apache/arrow-datafusion/pull/3965#discussion_r1006990108
##########
datafusion/common/src/dfschema.rs:
##########
@@ -367,21 +367,7 @@ impl From<DFSchema> for Schema {
/// Convert DFSchema into a Schema
fn from(df_schema: DFSchema) -> Self {
Schema::new_with_metadata(
- df_schema
- .fields
- .into_iter()
- .map(|f| {
- if f.qualifier().is_some() {
- Field::new(
- f.name().as_str(),
- f.data_type().to_owned(),
- f.is_nullable(),
- )
- } else {
- f.field
- }
- })
- .collect(),
+ df_schema.fields.into_iter().map(|f| f.field).collect(),
Review Comment:
💯 for fixing a bug by deleting code
--
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]