Share via


status (StreamingQuery)

Returns the current status of the query.

Returns

dict

Examples

sdf = spark.readStream.format("rate").load()
sq = sdf.writeStream.format('memory').queryName('this_query').start()
sq.status
# {'message': '...', 'isDataAvailable': ..., 'isTriggerActive': ...}
sq.stop()