Skip to content

Commit

Permalink
Cleanup updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Omega359 committed Dec 23, 2024
1 parent b8bf209 commit dc9f5db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
8 changes: 4 additions & 4 deletions datafusion/core/src/physical_planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1012,21 +1012,21 @@ impl DefaultPhysicalPlanner {
let left_df_schema = left.schema();
let right_df_schema = right.schema();
let execution_props = session_state.execution_props();
let config_options = Arc::new(session_state.config_options().clone());
let config_options = session_state.config_options();
let join_on = keys
.iter()
.map(|(l, r)| {
let l = create_physical_expr(
l,
left_df_schema,
execution_props,
&config_options,
config_options,
)?;
let r = create_physical_expr(
r,
right_df_schema,
execution_props,
&config_options,
config_options,
)?;
Ok((l, r))
})
Expand Down Expand Up @@ -1099,7 +1099,7 @@ impl DefaultPhysicalPlanner {
expr,
&filter_df_schema,
session_state.execution_props(),
&config_options,
config_options,
)?;
let column_indices = join_utils::JoinFilter::build_column_indices(
left_field_indices,
Expand Down
13 changes: 4 additions & 9 deletions datafusion/optimizer/src/decorrelate_predicate_subquery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,8 @@ impl OptimizerRule for DecorrelatePredicateSubquery {
}
// The subquery expression is embedded within another expression
SubqueryPredicate::Embedded(expr) => {
let (plan, expr_without_subqueries) = rewrite_inner_subqueries(
cur_input,
expr,
config,
config.options(),
)?;
let (plan, expr_without_subqueries) =
rewrite_inner_subqueries(cur_input, expr, config)?;
cur_input = plan;
other_exprs.push(expr_without_subqueries);
}
Expand Down Expand Up @@ -137,7 +133,6 @@ fn rewrite_inner_subqueries(
outer: LogicalPlan,
expr: Expr,
config: &dyn OptimizerConfig,
config_options: &ConfigOptions,
) -> Result<(LogicalPlan, Expr)> {
let mut cur_input = outer;
let alias = config.alias_generator();
Expand All @@ -151,7 +146,7 @@ fn rewrite_inner_subqueries(
None,
negated,
alias,
config_options,
config.options(),
)? {
Some((plan, exists_expr)) => {
cur_input = plan;
Expand All @@ -176,7 +171,7 @@ fn rewrite_inner_subqueries(
Some(in_predicate),
negated,
alias,
config_options,
config.options(),
)? {
Some((plan, exists_expr)) => {
cur_input = plan;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ impl<S: SimplifyInfo> ExprSimplifier<S> {
/// `b > 2`
///
/// ```
/// use std::sync::Arc;
/// use arrow::datatypes::DataType;
/// use datafusion_common::config::ConfigOptions;
/// use datafusion_expr::{col, lit, Expr};
Expand Down

0 comments on commit dc9f5db

Please sign in to comment.