alamb commented on code in PR #27771:
URL: https://github.com/apache/datafusion/pull/27771#discussion_r4731152001
##########
datafusion/core/tests/physical_optimizer/join_selection.rs:
##########
@@ -2264,3 +2269,103 @@ async fn
test_join_selection_skips_real_dynamic_filter_pushdown() -> Result<()>
Ok(())
}
+
+/// A session whose physical optimizer runs [`JoinSelection`] right after
+/// [`EnsureRequirements`] instead of before it.
+fn session_with_join_selection_after_enforcement() -> SessionContext {
+ let mut rules = PhysicalOptimizer::new().rules;
+ let position = |rules: &[Arc<dyn PhysicalOptimizerRule + Send + Sync>],
Review Comment:
I think it is fine to keep here, I was just imagining as we make it easier
to reorder rules, we might eventually be able to have APIs to make it easier to
understand
--
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]