DataStreamWriter.
queryName
Specifies the name of the StreamingQuery that can be started with start(). This name must be unique among all the currently active queries in the associated SparkSession.
StreamingQuery
start()
New in version 2.0.0.
unique name for the query
Notes
This API is evolving.
Examples
>>> import time >>> df = spark.readStream.format("rate").load() >>> q = df.writeStream.queryName("streaming_query").format("console").start() >>> q.stop() >>> q.name 'streaming_query'