How do we start a streaming execution query outputting micro-batches to the console sink for debugging?
df.writeStream.format('console').start() kicks off background micro-batch processing to the console sink.
Local stream testing, inspecting real-time transformations, and debugging streaming micro-batches.
query = streaming_df.writeStream \
.format("console") \
.start()Practice typing production-grade PySpark code for Starting Streaming Queries with writeStream.