QuestionQ265

VerifiedDeveloping Apache Spark™ DataFrame/DataSet API Applications

The code block below must return a new DataFrame that results from an outer join of DataFrame storesDF and DataFrame employeesDF on the storeId column. Choose the response that correctly fills the numbered blanks in the code block to complete this task.

Code block:

storesDF.__1__(__2__, __3__, __4__)  
Explanation

The Scala Spark join overload for a named-column equi-join takes the right DataFrame, a Seq[String] of join-column names, and the join type. join(employeesDF, Seq("storeId"), "outer") therefore performs the required outer join using storeId.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!