How do we keep all employee records while looking up their optional department details using a right join?
departments.join(employees, 'department_id', 'right') preserves all records from the right-hand employee table.
Preserving all child records when parent dimension records might be unassigned or missing.
joined_df = departments.join(employees, "department_id", "right")Practice typing production-grade PySpark code for Right Outer Join Exploration.