Question: Assuming hastags _ df is a Spark DataFrame, what does the following code do ? hastags _ df . registerTempTable ( 'hashtags' ) 1 -

Assuming hastags_df is a Spark DataFrame, what does the following code do?hastags_df. registerTempTable ( 'hashtags')1- Creates a new DataFrame named 'hashtags' from the DataFrame 'hastags_df".2- Registers the DataFrame 'hastags_df' as a temporary table named 'hashtags' in Spark's SQL context.3- Deletes the DataFrame 'hastags_df' and creates a temporary table named 'hashtags'.4- Retrieves the schema of the DataFrame 'hastags_df 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!