@@ -16,9 +16,7 @@ use crate::catalog::ColumnRef;
1616use crate :: errors:: DatabaseError ;
1717use crate :: execution:: dql:: join:: hash:: full_join:: FullJoinState ;
1818use crate :: execution:: dql:: join:: hash:: inner_join:: InnerJoinState ;
19- use crate :: execution:: dql:: join:: hash:: left_anti_join:: LeftAntiJoinState ;
2019use crate :: execution:: dql:: join:: hash:: left_join:: LeftJoinState ;
21- use crate :: execution:: dql:: join:: hash:: left_semi_join:: LeftSemiJoinState ;
2220use crate :: execution:: dql:: join:: hash:: right_join:: RightJoinState ;
2321use crate :: execution:: dql:: join:: hash:: {
2422 FilterArgs , JoinProbeState , JoinProbeStateImpl , LeftDropState , ProbeState ,
@@ -241,15 +239,6 @@ impl HashJoin {
241239 right_schema_len,
242240 bits : FixedBitSet :: with_capacity ( build_count) ,
243241 } ) ,
244- JoinType :: LeftSemi => JoinProbeStateImpl :: LeftSemi ( LeftSemiJoinState {
245- bits : FixedBitSet :: with_capacity ( build_count) ,
246- } ) ,
247- JoinType :: LeftAnti => JoinProbeStateImpl :: LeftAnti ( LeftAntiJoinState {
248- right_schema_len,
249- inner : LeftSemiJoinState {
250- bits : FixedBitSet :: with_capacity ( build_count) ,
251- } ,
252- } ) ,
253242 JoinType :: RightOuter => JoinProbeStateImpl :: Right ( RightJoinState { left_schema_len } ) ,
254243 JoinType :: Full => JoinProbeStateImpl :: Full ( FullJoinState {
255244 left_schema_len,
@@ -433,12 +422,10 @@ mod test {
433422 use crate :: planner:: operator:: Operator ;
434423 use crate :: planner:: { Childrens , LogicalPlan } ;
435424 use crate :: storage:: rocksdb:: { RocksStorage , RocksTransaction } ;
436- use crate :: storage:: table_codec:: BumpBytes ;
437425 use crate :: storage:: Storage ;
438426 use crate :: types:: value:: DataValue ;
439427 use crate :: types:: LogicalType ;
440428 use crate :: utils:: lru:: SharedLruCache ;
441- use bumpalo:: Bump ;
442429 use std:: hash:: RandomState ;
443430 use std:: sync:: Arc ;
444431 use tempfile:: TempDir ;
@@ -649,47 +636,6 @@ mod test {
649636 build_integers( vec![ Some ( 3 ) , Some ( 5 ) , Some ( 7 ) , None , None , None ] )
650637 ) ;
651638 }
652- {
653- let mut executor = HashJoin :: from ( ( op. clone ( ) , left. clone ( ) , right. clone ( ) ) ) ;
654- executor. ty = JoinType :: LeftSemi ;
655- let mut tuples = try_collect ( crate :: execution:: execute (
656- executor,
657- ( & table_cache, & view_cache, & meta_cache) ,
658- & mut transaction,
659- ) ) ?;
660-
661- let arena = Bump :: new ( ) ;
662- assert_eq ! ( tuples. len( ) , 2 ) ;
663- tuples. sort_by_key ( |tuple| {
664- let mut bytes = BumpBytes :: new_in ( & arena) ;
665- tuple. values [ 0 ] . memcomparable_encode ( & mut bytes) . unwrap ( ) ;
666- bytes
667- } ) ;
668-
669- assert_eq ! (
670- tuples[ 0 ] . values,
671- build_integers( vec![ Some ( 0 ) , Some ( 2 ) , Some ( 4 ) ] )
672- ) ;
673- assert_eq ! (
674- tuples[ 1 ] . values,
675- build_integers( vec![ Some ( 1 ) , Some ( 3 ) , Some ( 5 ) ] )
676- ) ;
677- }
678- {
679- let mut executor = HashJoin :: from ( ( op, left, right) ) ;
680- executor. ty = JoinType :: LeftAnti ;
681- let tuples = try_collect ( crate :: execution:: execute (
682- executor,
683- ( & table_cache, & view_cache, & meta_cache) ,
684- & mut transaction,
685- ) ) ?;
686-
687- assert_eq ! ( tuples. len( ) , 1 ) ;
688- assert_eq ! (
689- tuples[ 0 ] . values,
690- build_integers( vec![ Some ( 3 ) , Some ( 5 ) , Some ( 7 ) ] )
691- ) ;
692- }
693639
694640 Ok ( ( ) )
695641 }
0 commit comments