LiaCastaneda commented on PR #19546:
URL: https://github.com/apache/datafusion/pull/19546#issuecomment-3696808417
> Is there any way we can add a test showing that if there are no downstream
consumers we don't compute the filters?
I added `test_hashjoin_dynamic_filter_pushdown_not_used` that creates a
TestScanNode with support == false in the probe node and with
`enable_dynamic_filter_pushdown` is enabled so this
```
let enable_dynamic_filter_pushdown = context
.session_config()
.options()
.optimizer
.enable_join_dynamic_filter_pushdown
&& self
.dynamic_filter
.as_ref()
.map(|df| df.filter.is_used())
.unwrap_or(false);
```
should still return `false` even if the config is enabled
--
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]