QuestionQ51

VerifiedDevelopment and Ingestion

A data engineer is using the following code block as part of a batch ingestion pipeline to read from a composable table:

Question Image

Which of the following changes needs to be made so this code block will work when the transactions table is a stream source?

Explanation

To read from a stream source in Databricks, you must use spark.readStream instead of spark.read. The readStream API is the foundational method for structured streaming on Delta tables, enabling incremental data ingestion with checkpoint management.

Community Discussion

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