QuestionQ226

VerifiedData Transformation, Cleansing, and Quality

A junior data engineer wants to use Delta Lake Change Data Feed functionality to build a Type 1 table that represents every value ever valid for all rows in a bronze table created with the property delta.enableChangeDataFeed = true. They intend to run the following code as a daily job:

Question Image

Which statement describes the execution and results when the preceding query is run multiple times?

Explanation

A batch Change Data Feed read with startingVersion set to 0 returns changes from version 0 through the latest available version, inclusive, each time it runs. Since the output uses append mode and retains no processing state, every execution appends the full available history of insert and update_postimage records again, creating duplicate entries.

Learn more

Community Discussion

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