@@ -36,7 +36,7 @@ use crate::types::value::Utf8Type;
36
36
use crate :: types:: { ColumnId , LogicalType } ;
37
37
use itertools:: Itertools ;
38
38
use sqlparser:: ast:: {
39
- CharLengthUnits , Distinct , Expr , Ident , Join , JoinConstraint , JoinOperator , ObjectName , Offset ,
39
+ CharLengthUnits , Distinct , Expr , Ident , Join , JoinConstraint , JoinOperator , Offset ,
40
40
OrderByExpr , Query , Select , SelectInto , SelectItem , SetExpr , SetOperator , SetQuantifier ,
41
41
TableAlias , TableFactor , TableWithJoins ,
42
42
} ;
@@ -101,8 +101,6 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
101
101
} ;
102
102
let mut select_list = self . normalize_select_item ( & select. projection , & plan) ?;
103
103
104
- plan = self . bind_parent ( plan) ?;
105
-
106
104
if let Some ( predicate) = & select. selection {
107
105
plan = self . bind_where ( plan, predicate) ?;
108
106
}
@@ -536,22 +534,6 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
536
534
Ok ( ( ) )
537
535
}
538
536
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
-
555
537
fn bind_join (
556
538
& mut self ,
557
539
mut left : LogicalPlan ,
@@ -613,8 +595,6 @@ impl<'a: 'b, 'b, T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'
613
595
614
596
let predicate = self . bind_expr ( predicate) ?;
615
597
616
- children = self . bind_parent ( children) ?;
617
-
618
598
if let Some ( sub_queries) = self . context . sub_queries_at_now ( ) {
619
599
for sub_query in sub_queries {
620
600
let mut on_keys: Vec < ( ScalarExpression , ScalarExpression ) > = vec ! [ ] ;
0 commit comments