Which of the following pairs of arguments cannot be used in DataFrame.join() to perform an inner join on two DataFrames, named and aliased with "a" and "b" respectively, to specify two key columns column1 and column2?
A.
joinExprs = col(“a.column1”) === col(“b.column1”) and col(“a.column2”) === col(“b.column2”)
B.
usingColumns = Seq(col(“column1”), col(“column2”))
C.
All of these options can be used to perform an inner join with two key columns.
D.
joinExprs = storesDF(“column1”) === employeesDF(“column1”) and storesDF(“column2”) === employeesDF (“column2”)
Will option D work? I have never seen this way of accessing columns in a dataframe :
df("column") , it should be either df.column or col("a.column") [ considering a as an alias of df]
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Alucard069
6 months, 4 weeks agoSowwy1
7 months, 3 weeks ago