A data engineer needs to create a PySpark DataFrame transformation that applies a custom function to a column of integers called sales in order to return the square of each value. Which of the following code blocks correctly defines and applies a Spark UDF to accomplish this task? | Databricks Certified Data Engineer - Associate Quiz - LeetQuiz
31.8%

11.9%

10.0%

15.7%

30.6%
Powered ByGPT-5