@@ -36,7 +36,7 @@ use crate::types::value::Utf8Type;
3636use crate :: types:: { ColumnId , LogicalType } ;
3737use itertools:: Itertools ;
3838use sqlparser:: ast:: {
39- CharLengthUnits , Distinct , Expr , Ident , Join , JoinConstraint , JoinOperator , ObjectName , Offset ,
39+ CharLengthUnits , Distinct , Expr , Ident , Join , JoinConstraint , JoinOperator , Offset ,
4040 OrderByExpr , Query , Select , SelectInto , SelectItem , SetExpr , SetOperator , SetQuantifier ,
4141 TableAlias , TableFactor , TableWithJoins ,
4242} ;
@@ -101,8 +101,6 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
101101 } ;
102102 let mut select_list = self . normalize_select_item ( & select. projection , & plan) ?;
103103
104- plan = self . bind_parent ( plan) ?;
105-
106104 if let Some ( predicate) = & select. selection {
107105 plan = self . bind_where ( plan, predicate) ?;
108106 }
@@ -536,22 +534,6 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
536534 Ok ( ( ) )
537535 }
538536
539- fn bind_parent (
540- & mut self ,
541- mut plan : LogicalPlan ,
542- ) -> Result < LogicalPlan , DatabaseError > {
543- for ( table, columns) in self . parent_table_col . clone ( ) . into_iter ( ) {
544- let parent = self . _bind_single_table_ref ( None , table. as_str ( ) , None ) ?;
545- plan = LJoinOperator :: build (
546- plan,
547- parent,
548- JoinCondition :: None ,
549- JoinType :: Full ,
550- ) ;
551- }
552- Ok ( plan)
553- }
554-
555537 fn bind_join (
556538 & mut self ,
557539 mut left : LogicalPlan ,
@@ -613,8 +595,6 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
613595
614596 let predicate = self . bind_expr ( predicate) ?;
615597
616- children = self . bind_parent ( children) ?;
617-
618598 if let Some ( sub_queries) = self . context . sub_queries_at_now ( ) {
619599 for sub_query in sub_queries {
620600 let mut on_keys: Vec < ( ScalarExpression , ScalarExpression ) > = vec ! [ ] ;
0 commit comments