Câu 40: Databricks Certified Data Analyst Associate
A data engineer is working with a nested array column products in table transactions. They want to expand the table so each unique item in products for each row has its own row where the transaction_id column is duplicated as necessary. They are using the following incomplete command: Which of the following lines of c…
Nội dung câu hỏi
A data engineer is working with a nested array column products in table transactions. They want to expand the table so each unique item in products for each row has its own row where the transaction_id column is duplicated as necessary. They are using the following incomplete command: Which of the following lines of code can they use to fill in the blank in the above code block so that it successfully completes the task?
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. array distinct(products)
- B. explode(products) — đáp án hiện tại
- C. reduce(products)
- D. array(products)
- E. flatten(products)
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.