Skip to content

Commit

Permalink
fmt+clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklan committed Oct 8, 2024
1 parent 91ca99c commit 29b09f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kernel/src/engine/arrow_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,9 @@ fn apply_to_col(
)?;
Ok(Some(Arc::new(transformed_map)))
} else {
return Err(make_arrow_error(
Err(make_arrow_error(
"Arrow map type wasn't a struct.".to_string(),
));
))
}
}
_ => {
Expand Down Expand Up @@ -562,7 +562,7 @@ impl ExpressionEvaluator for DefaultExpressionEvaluator {
.ok_or(Error::unexpected_column_type("Expected a struct array"))?;
match ensure_data_types(&self.output_type, sa.data_type()) {
Ok(_) => sa.into(),
Err(_) => apply_schema(sa, &self.output_type)?
Err(_) => apply_schema(sa, &self.output_type)?,
}
} else {
let schema = ArrowSchema::new(vec![ArrowField::new("output", arrow_type, true)]);
Expand Down

0 comments on commit 29b09f7

Please sign in to comment.