QuestionQ174

VerifiedProductionizing Data Pipelines

Which of the following commands can be used to write data into a Delta table while avoiding the writing of duplicate records?

Explanation

MERGE performs an upsert operation that atomically matches incoming data against existing records and conditionally inserts (if new) or updates (if matched). This prevents duplicates by design. Other options (DROP, IGNORE, APPEND, INSERT) either delete data or add without deduplication logic.

Community Discussion

No comments yet. Be the first to start the discussion!