nuno-faria commented on issue #17196:
URL: https://github.com/apache/datafusion/issues/17196#issuecomment-3189563371

   > Hmm I thought DataFusion didn't do smart switching of sides i.e. left side 
is always build side and right is always probe side?
   
   When there are statistics the planner selects the smaller side to be the 
build side.
   I think its done by the `join_selection` rule: 
https://github.com/apache/datafusion/blob/main/datafusion/physical-optimizer/src/join_selection.rs


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to