SPARK - Joining 2 dataframes on values in an array
问题 I can't find an easy and elegant solution to this one. I have a df1 with this column : |-- guitars: array (nullable = true) | |-- element: long (containsNull = true) I have a df2 made of guitars, and an id matching with the Long in my df 1. root |-- guitarId: long (nullable = true) |-- make: string (nullable = true) |-- model: string (nullable = true) |-- type: string (nullable = true) I want to join my two dfs, obviously, and instead of having an array of long, I want an array of struct