QuestionQ31

VerifiedProductionizing Data Pipelines

A data engineer has configured a Structured Streaming job to read from a table, manipulate the data, and then perform a streaming write into a new table.

The code block used by the data engineer is below:

Question Image

The data engineer only wants the query to process all of the available data in as many batches as required.

Which line of code should the data engineer use to fill in the blank?

Explanation

trigger(availableNow=True) processes all data currently available in the source, using one or more micro-batches as needed, and then stops. This differs from trigger(once=True) which processes a single micro-batch and from continuous triggers which repeat indefinitely.

Community Discussion

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