QuestionQ14

VerifiedData Ingestion & Acquisition

A nightly job ingests data into a Delta Lake table using the following code:

Question Image

The next pipeline step requires a function that returns an object that can be used to manipulate new records that have not yet been processed into the next table in the pipeline.

Which code snippet completes this function definition?

def new_records():  
Explanation

spark.readStream.table("bronze") defines a streaming DataFrame over the table, enabling incremental processing as new records arrive. Change Data Feed is not enabled by the shown write, and Delta Change Data Feed must be explicitly enabled before readChangeFeed can be used.

Learn more

Community Discussion

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