I have 2 dataframes that I would like to join.
DF1:
root
|-- myStruct: struct (nullable = true)
| |-- id: string (nullable = true)
| |-- region: long (nullable = true)
|-- first_name: string (nullable = true)
DF2:
root
|-- id: string (nullable = true)
|-- region: long (nullable = true)
|-- second_name: string (nullable = true)
My join statement is
df1.join(df2, Seq("id", "region"), "leftouter")
but that fails with
USING column `id` cannot be resolved on the left side of the join. The left-side columns: myStruct, first_name
I am running Spark 2.2 on Scala