Skip to main content
Dependencies:
  • ProphecySparkBasicsPython 0.0.1+
  • ProphecySparkBasicsScala 0.0.1+
Cluster requirements:
  • UC dedicated clusters 14.3+ supported
  • UC standard clusters 14.3+ supported
  • Livy clusters 3.0.1+ supported
Joins 2 or more DataFrames based on the given configuration.

Parameters

Adding a new input

  1. Click on the + icon to add a new input.
  2. Then add your condition expression for the newly added input.
Example usage of Join - Add new input to join gem

Examples

Example 1 - Join with three DataFrame inputs

Example usage of Join - Join three DataFrame inputs

Example 2 - Join with Hints

Join hints allow users to suggest the join strategy that Spark should use. For a quick overview, see Spark’s Join Hints documentation. Example usage of Join - Join with hints

Example 3 - Join with Propagate Columns

Types of Join

Suppose there are 2 tables TableA and TableB with only 2 columns (Ref, Data) and following contents:

Table A

Table B

INNER JOIN

Inner Join on column Ref will return columns from both the tables and only the matching records as long as the condition is satisfied:

LEFT JOIN

Left Join (or Left Outer join) on column Ref will return columns from both the tables and match records with records from the left table. The result-set will contain null for the rows for which there is no matching row on the right side.

RIGHT JOIN

Right Join (or Right Outer join) on column Ref will return columns from both the tables and match records with records from the right table. The result-set will contain null for the rows for which there is no matching row on the left side.

FULL OUTER JOIN

Full Outer Join on column Ref will return columns from both the tables and matching records with records from the left table and records from the right table . The result-set will contain NULL values for the rows for which there is no matching.

LEFT SEMI JOIN

Left Semi Join on column Ref will return columns only from left table and matching records only from left table.

LEFT ANTI JOIN

Left anti join on column Ref will return columns from the left for non-matched records :