The code block displayed below contains one or more errors. The code block should load parquet files at location filePath into a DataFrame, only loading those files that have been modified before2029-03-20 05:44:46. Spark should enforce a schema according to the schema shown below. Find the error.Schema:1. root2. |-- itemId: integer (nullable = true)3. |-- attributes: array (nullable = true)4. | |-- element: string (containsNull = true)5. |-- supplier: string (nullable = true)Code block:1. schema = StructType([2. StructType('itemId', IntegerType(), True),3. StructType('attributes', ArrayType(StringType(), True), True),4. StructType('supplier', StringType(), True)5. ])6.7. spark.read.options('modifiedBefore', '2029-03-20T05:44:46').schema(schema).load(filePath)
Which of the following describes slots?
The code block displayed below contains an error. The code block should trigger Spark to cache DataFrame transactionsDf in executor memory where available, writing to disk where insufficientexecutor memory is available, in a fault-tolerant way. Find the error.Code block:transactionsDf.persist(StorageLevel.MEMORY_AND_DISK)
Which of the following statements about RDDs is incorrect?
Which of the following code blocks uses a schema fileSchema to read a parquet file at location filePath into a DataFrame?