@@ -1395,7 +1395,7 @@ impl DefaultPhysicalPlanner {
13951395
13961396 // TODO: Allow PWMJ to deal with residual equijoin conditions
13971397 let join: Arc < dyn ExecutionPlan > = if join_on. is_empty ( ) {
1398- if join_filter. is_none ( ) && matches ! ( join_type, JoinType :: Inner ) {
1398+ if join_filter. is_none ( ) && * join_type == JoinType :: Inner {
13991399 // cross join if there is no join conditions and no join filter set
14001400 Arc :: new ( CrossJoinExec :: new ( physical_left, physical_right) )
14011401 } else if num_range_filters == 1
@@ -1470,9 +1470,7 @@ impl DefaultPhysicalPlanner {
14701470
14711471 let left_side = side_of ( lhs_logical) ?;
14721472 let right_side = side_of ( rhs_logical) ?;
1473- if matches ! ( left_side, Side :: Both )
1474- || matches ! ( right_side, Side :: Both )
1475- {
1473+ if left_side == Side :: Both || right_side == Side :: Both {
14761474 return Ok ( Arc :: new ( NestedLoopJoinExec :: try_new (
14771475 physical_left,
14781476 physical_right,
@@ -3553,12 +3551,12 @@ mod tests {
35533551 assert ! (
35543552 stringified_plans
35553553 . iter( )
3556- . any( |p| matches! ( p. plan_type, PlanType :: FinalLogicalPlan ) )
3554+ . any( |p| p. plan_type == PlanType :: FinalLogicalPlan )
35573555 ) ;
35583556 assert ! (
35593557 stringified_plans
35603558 . iter( )
3561- . any( |p| matches! ( p. plan_type, PlanType :: InitialPhysicalPlan ) )
3559+ . any( |p| p. plan_type == PlanType :: InitialPhysicalPlan )
35623560 ) ;
35633561 assert ! (
35643562 stringified_plans. iter( ) . any( |p| matches!(
@@ -3569,7 +3567,7 @@ mod tests {
35693567 assert ! (
35703568 stringified_plans
35713569 . iter( )
3572- . any( |p| matches! ( p. plan_type, PlanType :: FinalPhysicalPlan ) )
3570+ . any( |p| p. plan_type == PlanType :: FinalPhysicalPlan )
35733571 ) ;
35743572 } else {
35753573 panic ! (
0 commit comments