pyspark.sql.streaming.DataStreamWriter.queryName¶
-
DataStreamWriter.
queryName
(queryName)[source]¶ Specifies the name of the
StreamingQuery
that can be started withstart()
. This name must be unique among all the currently active queries in the associated SparkSession.New in version 2.0.0.
- Parameters
- queryNamestr
unique name for the query
Notes
This API is evolving.
Examples
>>> writer = sdf.writeStream.queryName('streaming_query')