LiaCastaneda opened a new pull request, #19734:
URL: https://github.com/apache/datafusion/pull/19734

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and 
enhancements and this helps us generate change logs for our releases. You can 
link an issue to this PR using the GitHub syntax. For example `Closes #123` 
indicates that this PR will close issue #123.
   -->
   
   - Closes https://github.com/apache/datafusion/issues/19715.
   
   ## Rationale for this change
   
   The:is_used() API incorrectly returned false for custom `DataSource` 
implementations that didn't called  reassign_expr_columns() ->  
with_new_children() . This caused `HashJoinExec` to skip computing dynamic 
filters even when they were actually being used.
   
   ## What changes are included in this PR?
   
   
   Updated is_used() to check both outer and inner Arc counts
   
   ## Are these changes tested?
   
   Functionality is covered by existing test 
`test_hashjoin_dynamic_filter_pushdown_is_used`. I was not sure to add a repro 
since it would require adding custom `DataSource`.
   
   ## Are there any user-facing changes?
   
   no
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to