Question: Assuming hastags _ df is a Spark DataFrame, what does the following code do ? hastags _ df . registerTempTable ( 'hashtags' ) 1 -
Assuming hastagsdf is a Spark DataFrame, what does the following code dohastagsdf registerTempTable 'hashtags' Creates a new DataFrame named 'hashtags' from the DataFrame 'hastagsdf Registers the DataFrame 'hastagsdf as a temporary table named 'hashtags' in Spark's SQL context Deletes the DataFrame 'hastagsdf and creates a temporary table named 'hashtags' Retrieves the schema of the DataFrame 'hastagsdf and stores it as a temporary table named 'hashtags'
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
