Câu 11: Databricks Certified Associate Developer for Apache Spark
The code block shown below contains an error. The code block is intended to return a new DataFrame that is the result of a cross join between DataFrame storesDF and DataFrame employeesDF. Identify the error. Code block:storesDF.join(employeesDF, "cross")
Nội dung câu hỏi
The code block shown below contains an error. The code block is intended to return a new DataFrame that is the result of a cross join between DataFrame storesDF and DataFrame employeesDF. Identify the error. Code block:storesDF.join(employeesDF, "cross")
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. A cross join is not implemented by the DataFrame.join() operations – the standalone CrossJoin() operation should be used instead.
- B. There is no direct cross join in Spark, but it can be implemented by performing an outer join on all columns of both DataFrames.
- C. A cross join is not implemented by the DataFrame.join()operation – the DataFrame.crossJoin()operation should be used instead. — đáp án hiện tại
- D. There is no key column specified – the key column "storeId" should be the second argument.
- E. A cross join is not implemented by the DataFrame.join() operations – the standalone join() operation should be used instead.
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.