neilconway opened a new issue, #22724: URL: https://github.com/apache/datafusion/issues/22724
### Describe the bug `estimate_inner_join_cardinality` sets `join_selectivity` to larger of the NDVs of whichever join key is last in the list. The intent was presumably to set `join_selectivity` to the max of the pair-wise maxes of the join keys, i.e., to use the most selective join key as the selectivity of the selectivity of the join itself. ### To Reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_ -- 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]
