I want to perform left outer join on Dataset using spark Java API. How to write dynamic condition to match the multiple columns in join condition.
I am having two dataset objects. Both of them having 2 or more columns. I am not able to define condition
Example which match 1 column with another
dataSet = resultData.as("resultData").join(distinctData.as("distinctData"), resultData.col("A").equalTo(distinctData.col("B")), "leftouter").selectExpr(select.toString());
Now Since there are multiple column I am not able to define dynamic expression for matching the multiple columns using Java API.