Skip to contents

Returns Cartesian Product on two SparkDataFrames.

Usage

# S4 method for SparkDataFrame,SparkDataFrame
crossJoin(x, y)

Arguments

x

A SparkDataFrame

y

A SparkDataFrame

Value

A SparkDataFrame containing the result of the join operation.

Note

crossJoin since 2.1.0

Examples

if (FALSE) {
sparkR.session()
df1 <- read.json(path)
df2 <- read.json(path2)
crossJoin(df1, df2) # Performs a Cartesian
}