
Ultimate access to all questions.
The code block shown below contains an error. The code block intended to read a parquet at the file path filePath into a DataFrame. Identify the error.
spark.read.load(filePath, source – "parquet")
spark.read.load(filePath, source – "parquet")
A
There is no source parameter to the load() operation – the schema parameter should be used instead.
B
There is no load() operation – it should be parquet() instead.
C
The spark.read operation should be followed by parentheses to return a DataFrameReader object.
D
The filePath argument to the load() operation should be quoted.
E
There is no source parameter to the load() operation – it can be removed.