Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Aug 3, 2024
1 parent e8a3477 commit 50500ea
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions datafusion/sql/src/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ use sqlparser::ast::{
};

use datafusion_common::{
internal_datafusion_err, internal_err, not_impl_err, plan_err, DFSchema,
Result, ScalarValue,
internal_datafusion_err, internal_err, not_impl_err, plan_err, DFSchema, Result,
ScalarValue,
};
use datafusion_expr::expr::InList;
use datafusion_expr::expr::ScalarFunction;
Expand Down Expand Up @@ -723,13 +723,10 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
schema: &DFSchema,
planner_context: &mut PlannerContext,
) -> Result<Expr> {
let mut exprs: Vec<_> = entries.into_iter()
.flat_map(|entry| {
vec![entry.key, entry.value].into_iter()
})
.map(|expr| {
self.sql_expr_to_logical_expr(*expr, schema, planner_context)
})
let mut exprs: Vec<_> = entries
.into_iter()
.flat_map(|entry| vec![entry.key, entry.value].into_iter())
.map(|expr| self.sql_expr_to_logical_expr(*expr, schema, planner_context))
.collect::<Result<Vec<_>>>()?;
for planner in self.context_provider.get_expr_planners() {
match planner.plan_make_map(exprs)? {
Expand Down

0 comments on commit 50500ea

Please sign in to comment.