join
Joins two DataFrame
object by join columns.
joinColumns
is a column selector that defines column mapping for join:
If mapped columns have the same name, just select join columns from the left DataFrame
:
If joinColumns
is not specified, columns with the same name from both DataFrame
objects will be used as join columns:
Join types
Supported join types:
Inner
(default) — only matched rows from left and rightDataFrame
objectsFilter
— only matched rows from leftDataFrame
Left
— all rows from leftDataFrame
, mismatches from rightDataFrame
filled withnull
Right
— all rows from rightDataFrame
, mismatches from leftDataFrame
filled withnull
Full
— all rows from left and rightDataFrame
objects, any mismatches filled withnull
Exclude
— only mismatched rows from leftDataFrame
For every join type there is a shortcut operation: