QuestionQ7

VerifiedStructured Streaming

A data engineer is working with a Streaming DataFrame, streaming_df, containing the following streaming data:

Question Image

Which operation is supported with streaming_df?

Explanation

A grouped count is a supported stateful aggregation in Spark Structured Streaming. The engine maintains aggregation state by Id across incoming micro-batches and can emit the counts using an appropriate streaming output mode.

Community Discussion

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