Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan committed Oct 17, 2024
1 parent 5b53758 commit f1c7c87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions datafusion/optimizer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pub mod analyzer;
pub mod common_subexpr_eliminate;
pub mod decorrelate;
pub mod decorrelate_predicate_subquery;
pub mod eliminate_cross_join;
pub mod eliminate_duplicated_expr;
pub mod eliminate_filter;
pub mod eliminate_group_by_constant;
Expand Down Expand Up @@ -65,6 +66,7 @@ pub use optimizer::{Optimizer, OptimizerConfig, OptimizerContext, OptimizerRule}
#[allow(deprecated)]
pub use utils::optimize_children;

pub(crate) mod join_key_set;
mod plan_signature;

#[cfg(test)]
Expand Down
2 changes: 2 additions & 0 deletions datafusion/optimizer/src/optimizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use datafusion_expr::logical_plan::LogicalPlan;

use crate::common_subexpr_eliminate::CommonSubexprEliminate;
use crate::decorrelate_predicate_subquery::DecorrelatePredicateSubquery;
use crate::eliminate_cross_join::EliminateCrossJoin;
use crate::eliminate_duplicated_expr::EliminateDuplicatedExpr;
use crate::eliminate_filter::EliminateFilter;
use crate::eliminate_group_by_constant::EliminateGroupByConstant;
Expand Down Expand Up @@ -257,6 +258,7 @@ impl Optimizer {
Arc::new(RewriteDisjunctivePredicate::new()),
Arc::new(EliminateDuplicatedExpr::new()),
Arc::new(EliminateFilter::new()),
Arc::new(EliminateCrossJoin::new()),
Arc::new(CommonSubexprEliminate::new()),
Arc::new(EliminateLimit::new()),
Arc::new(PropagateEmptyRelation::new()),
Expand Down
8 changes: 3 additions & 5 deletions datafusion/sql/src/relation/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,9 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
.build()
}
}
JoinConstraint::None => {
LogicalPlanBuilder::from(left)
.join_on(right, join_type, [])?
.build()
}
JoinConstraint::None => LogicalPlanBuilder::from(left)
.join_on(right, join_type, [])?
.build(),
}
}
}
Expand Down

0 comments on commit f1c7c87

Please sign in to comment.