Câu 45: Databricks Certified Associate Developer for Apache Spark
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. Code block:spark.read.load(filePath, source – "parquet")
Nội dung câu hỏi
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. Code block:spark.read.load(filePath, source – "parquet")
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- 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. — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.