Data Preparation for ML and AI

Which Spark operation appends rows from datasets with identical schemas while retaining duplicate rows?

Show the answer

Correct answerC. Union

AWhy not this: An inner join combines records based on matching conditions instead of stacking rows.

BWhy not this: Distinct removes duplicate records rather than combining datasets.

CWhy this is right: Spark DataFrame union appends records without automatically removing duplicates.

DWhy not this: Intersection returns records shared by the datasets rather than appending all records.

Spark DataFrame union appends rows and retains duplicates. An inner join combines matching rows across datasets rather than appending their records.