neilconway opened a new pull request, #22725: URL: https://github.com/apache/datafusion/pull/22725
## Which issue does this PR close? - Closes #22724 ## Rationale for this change `estimate_inner_join_cardinality` sets `join_selectivity` to the selectivity of the last join key in the list. The intent was almost surely to instead use the selectivity of the most selective join key instead. ## What changes are included in this PR? * Fix formula for multi-key join selectivity estimation * Improve comment to reference Spark Catalyst behavior more clearly * Add unit test ## Are these changes tested? Yes, new test added. ## 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]
