Skip to content

Commit

Permalink
fix(substrait): clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tokoko committed Oct 10, 2024
1 parent bbf7e48 commit 229429e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions datafusion/substrait/src/logical_plan/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -992,14 +992,11 @@ fn ensure_schema_compatability(
.strip_qualifiers()
.fields()
.iter()
.map(|substrait_field| {
.try_for_each(|substrait_field| {
let df_field =
table_schema.field_with_unqualified_name(substrait_field.name())?;
ensure_field_compatability(df_field, substrait_field)
})
.collect::<Result<()>>()?;

Ok(())
}

/// This function returns a DataFrame with fields adjusted if necessary in the event that the
Expand Down

0 comments on commit 229429e

Please sign in to comment.