QuestionQ42
VerifiedUsing Spark SQLThe code block below has an error. It is intended to use SQL to return a new DataFrame with the storeId and managerName columns from a table created from DataFrame storesDF. Identify the error.
storesDF.createOrReplaceTempView("stores")
storesDF.sql("SELECT storeId, managerName FROM stores")
Community Discussion