pyspark.sql.streaming.DataStreamWriter.queryName

DataStreamWriter.queryName(queryName: str) → pyspark.sql.streaming.readwriter.DataStreamWriter

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.

Parameters
queryNamestr

unique name for the query

Notes

This API is evolving.

Examples

>>> writer = sdf.writeStream.queryName('streaming_query')