@@ -20,9 +20,7 @@ use crate::filter_pushdown::{
2020 ChildPushdownResult , FilterDescription , FilterPushdownPhase ,
2121 FilterPushdownPropagation ,
2222} ;
23- use crate :: joins:: utils:: {
24- reorder_output_after_swap, swap_join_projection, OnceFut ,
25- } ;
23+ use crate :: joins:: utils:: { reorder_output_after_swap, swap_join_projection, OnceFut } ;
2624use crate :: joins:: { JoinOn , JoinOnRef , PartitionMode } ;
2725use crate :: projection:: {
2826 try_embed_projection, try_pushdown_through_join, EmbeddedProjection , JoinData ,
@@ -33,12 +31,12 @@ use crate::{
3331 common:: can_project,
3432 joins:: utils:: {
3533 build_join_schema, check_join_is_valid, estimate_join_statistics,
36- symmetric_join_output_partitioning,
37- BuildProbeJoinMetrics , ColumnIndex , JoinFilter ,
34+ symmetric_join_output_partitioning, BuildProbeJoinMetrics , ColumnIndex ,
35+ JoinFilter ,
3836 } ,
3937 metrics:: { ExecutionPlanMetricsSet , MetricsSet } ,
40- DisplayAs , DisplayFormatType , Distribution , ExecutionPlan ,
41- PlanProperties , SendableRecordBatchStream , Statistics ,
38+ DisplayAs , DisplayFormatType , Distribution , ExecutionPlan , PlanProperties ,
39+ SendableRecordBatchStream , Statistics ,
4240} ;
4341use crate :: { ExecutionPlanProperties , SpillManager } ;
4442use std:: fmt;
@@ -52,8 +50,7 @@ use arrow::datatypes::SchemaRef;
5250use arrow:: record_batch:: RecordBatch ;
5351use datafusion_common:: config:: ConfigOptions ;
5452use datafusion_common:: {
55- internal_err, plan_err, project_schema, JoinSide , JoinType ,
56- NullEquality , Result ,
53+ internal_err, plan_err, project_schema, JoinSide , JoinType , NullEquality , Result ,
5754} ;
5855use datafusion_execution:: TaskContext ;
5956use datafusion_functions_aggregate_common:: min_max:: { MaxAccumulator , MinAccumulator } ;
@@ -670,7 +667,7 @@ impl ExecutionPlan for GraceHashJoinExec {
670667 spill_right_clone,
671668 partition,
672669 )
673- . await ?;
670+ . await ?;
674671 accumulator_clone
675672 . report_partition ( partition, left_idx. clone ( ) , right_idx. clone ( ) )
676673 . await ;
@@ -730,11 +727,11 @@ impl ExecutionPlan for GraceHashJoinExec {
730727 }
731728
732729 if let Some ( JoinData {
733- projected_left_child,
734- projected_right_child,
735- join_filter,
736- join_on,
737- } ) = try_pushdown_through_join (
730+ projected_left_child,
731+ projected_right_child,
732+ join_filter,
733+ join_on,
734+ } ) = try_pushdown_through_join (
738735 projection,
739736 self . left ( ) ,
740737 self . right ( ) ,
@@ -820,7 +817,7 @@ impl ExecutionPlan for GraceHashJoinExec {
820817 let mut result = FilterPushdownPropagation :: if_any ( child_pushdown_result. clone ( ) ) ;
821818 assert_eq ! ( child_pushdown_result. self_filters. len( ) , 2 ) ; // Should always be 2, we have 2 children
822819 let right_child_self_filters = & child_pushdown_result. self_filters [ 1 ] ; // We only push down filters to the right child
823- // We expect 0 or 1 self filters
820+ // We expect 0 or 1 self filters
824821 if let Some ( filter) = right_child_self_filters. first ( ) {
825822 // Note that we don't check PushdDownPredicate::discrimnant because even if nothing said
826823 // "yes, I can fully evaluate this filter" things might still use it for statistics -> it's worth updating
@@ -855,7 +852,6 @@ impl ExecutionPlan for GraceHashJoinExec {
855852 }
856853}
857854
858-
859855#[ allow( clippy:: too_many_arguments) ]
860856pub async fn partition_and_spill (
861857 random_state : RandomState ,
@@ -883,7 +879,7 @@ pub async fn partition_and_spill(
883879 & join_metrics,
884880 enable_dynamic_filter_pushdown,
885881 )
886- . await ?;
882+ . await ?;
887883
888884 // RIGHT side partitioning
889885 let right_index = partition_and_spill_one_side (
@@ -896,7 +892,7 @@ pub async fn partition_and_spill(
896892 & join_metrics,
897893 enable_dynamic_filter_pushdown,
898894 )
899- . await ?;
895+ . await ?;
900896 Ok ( ( left_index, right_index) )
901897}
902898
0 commit comments