QuestionQ283
VerifiedDeveloping Apache Spark™ DataFrame/DataSet API ApplicationsThe code block below contains an error. It is intended to return a new DataFrame from DataFrame storesDF in which column storeId has the type string. Identify the error.
Code block:
storesDF.withColumn(“storeId”, cast(col(“storeId”), StringType()))
Community Discussion