Joining Spark dataframes on the key

后端 未结 8 2172
情书的邮戳
情书的邮戳 2020-11-28 03:02

I have constructed two dataframes. How can we join multiple Spark dataframes ?

For Example :

PersonDf, ProfileDf with a common col

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 03:53

    inner join with scala

    val joinedDataFrame = PersonDf.join(ProfileDf ,"personId")
    joinedDataFrame.show
    

提交回复
热议问题