CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 73: Databricks Certified Associate Developer for Apache Spark

The code block shown below contains an error. The code block intended to return a new DataFrame that is the result of an inner join between DataFrame storesDF and DataFrame employeesDF on column storeId. Identify the error. Code block:StoresDF.join(employeesDF, Seq("storeId")

Nội dung câu hỏi

The code block shown below contains an error. The code block intended to return a new DataFrame that is the result of an inner join between DataFrame storesDF and DataFrame employeesDF on column storeId. Identify the error. Code block:StoresDF.join(employeesDF, Seq("storeId")

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.

  1. A. The key column storeId needs to be a string like “storeId”. — đáp án hiện tại
  2. B. The key column storeId needs to be specified in an expression of both Data Frame columns like storesDF.storeId ===employeesDF.storeId.
  3. C. The default argument to the joinType parameter is “inner” - an additional argument of “left” must be specified.
  4. D. There is no DataFrame.join() operation - DataFrame.merge() should be used instead.
  5. E. The key column storeId needs to be wrapped in the col() operation.

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.

Câu hỏi liền kề