File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
datafusion/datasource/src Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -595,8 +595,11 @@ impl DataSource for FileScanConfig {
595595 & mut eq_properties,
596596 & schema,
597597 ) {
598- Ok ( ( ) ) => { }
598+ Ok ( ( ) ) => {
599+ println ! ( "Added filter equivalence info: {eq_properties:?} " ) ;
600+ }
599601 Err ( e) => {
602+ println ! ( "Fail to add filter equivalence info: {e}" ) ;
600603 warn ! ( "Failed to add filter equivalence info: {e}" ) ;
601604 #[ cfg( debug_assertions) ]
602605 panic ! ( "Failed to add filter equivalence info: {e}" ) ;
@@ -764,10 +767,12 @@ impl FileScanConfig {
764767 eq_properties : & mut EquivalenceProperties ,
765768 schema : & Schema ,
766769 ) -> Result < ( ) > {
770+ println ! ( "Adding filter equivalence info from filter: {filter:?} " ) ;
767771 macro_rules! ignore_dangling_col {
768772 ( $col: expr) => {
769773 if let Some ( col) = $col. as_any( ) . downcast_ref:: <Column >( ) {
770774 if schema. index_of( col. name( ) ) . is_err( ) {
775+ print!( "error ignoring dangling column {}" , col. name( ) ) ;
771776 continue ;
772777 }
773778 }
Original file line number Diff line number Diff line change @@ -357,6 +357,7 @@ impl ExecutionPlan for DataSourceExec {
357357 let mut new_node = self . clone ( ) ;
358358 new_node. data_source = data_source;
359359 // Re-compute properties since we have new filters which will impact equivalence info
360+ println ! ( "Recomputing properties for DataSourceExec after filter pushdown" ) ;
360361 new_node. cache =
361362 Self :: compute_properties ( Arc :: clone ( & new_node. data_source ) ) ;
362363
You can’t perform that action at this time.
0 commit comments