The code block shown below contains an error. The code block is intended to create and register a SQL UDF named “ASSESS_PERFORMANCE” using the Scala function assessPerformance() and apply it to column customerSatisfaction in the table stores. Identify the error.
Code block:
spark.udf.register(“ASSESS_PERFORMANCE”, assessPerforance)
spark.sql(“SELECT customerSatisfaction, assessPerformance(customerSatisfaction) AS result FROM stores”)
cd6a625
4 months, 2 weeks agoSaiPavan10
7 months, 3 weeks agoveli4ko
1 year, 1 month agothanab
1 year, 2 months agoRam459
1 year, 3 months agozozoshanky
1 year, 3 months ago