The code block shown below contains an error. The code block is intended to read JSON at the file path filePath into a DataFrame with the specified schema schema. Identify the error.
Code block:
spark.read.schema("schema").format("json").load(filePath)