Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Apr 1, 2024
1 parent 10a40dd commit 792212c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions datafusion/sql/src/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,12 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
return not_impl_err!("Struct fields are not supported yet");
}

if values.iter().any(|value| matches!(value, SQLExpr::Named { .. })) {
if values
.iter()
.any(|value| matches!(value, SQLExpr::Named { .. }))
{
self.create_named_struct(values, input_schema, planner_context)
}
else {
} else {
self.create_struct(values, input_schema, planner_context)
}
}
Expand Down Expand Up @@ -693,7 +695,6 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
)))
}


fn parse_array_agg(
&self,
array_agg: ArrayAgg,
Expand Down

0 comments on commit 792212c

Please sign in to comment.