pyspark.sql.streaming.DataStreamReader.option

DataStreamReader.option(key, value)[source]

Adds an input option for the underlying data source.

New in version 2.0.0.

Notes

This API is evolving.

Examples

>>> s = spark.readStream.option("x", 1)