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

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

Which of the following code blocks fails to return a new DataFrame that is the result of an inner join between DataFrame storesDF and DataFrame employeesDF on column storeId and column employeeId?

Nội dung câu hỏi

Which of the following code blocks fails to return a new DataFrame that is the result of an inner join between DataFrame storesDF and DataFrame employeesDF on column storeId and column employeeId?

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. storesDF.join(employeesDF, Seq(col("storeId"), col("employeeId"))) — đáp án hiện tại
  2. B. storesDF.join(employeesDF, Seq("storeId", "employeeId"))
  3. C. storesDF.join(employeesDF, storesDF("storeId") === employeesDF("storeId") and storesDF("employeeId") === employeesDF("employeeId"))
  4. D. storesDF.join(employeesDF, Seq("storeId", "employeeId"), "inner")
  5. E. storesDF.alias("s").join(employeesDF.alias("e"), col("s.storeId") === col("e.storeId") and col("s.employeeId") === col("e.employeeId"))

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ề