Github user Tagar commented on the issue:

    https://github.com/apache/spark/pull/16228
  
    @wzhfy, thanks for the feedback.
    For outer joins, cardinaility estimates should be:
    - left_outer_join_cardinality(table_A, table_B) = MAX(cardinality(A), 
inner_join_cardinality(table_A, table_B))
      So with left outer join, you'll get join cardinality at least number of 
the rows on the left (table A);
    - right outer join is similar to left outer join (with exception s/A/B/g);
    - full_outer_join_cardinality(table_A, table_B) = cardinality(A) + 
cardinality(B) - inner_join_cardinality(table_A, table_B)).
    Does this sound about right?
      


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to