pyspark.sql.streaming.DataStreamReader.orc

DataStreamReader.orc(path: str, mergeSchema: Optional[bool] = None, pathGlobFilter: Union[bool, str, None] = None, recursiveFileLookup: Union[bool, str, None] = None) → DataFrame

Loads a ORC file stream, returning the result as a DataFrame.

Other Parameters
Extra options

For the extra options, refer to Data Source Option in the version you use.

Examples

>>> orc_sdf = spark.readStream.schema(sdf_schema).orc(tempfile.mkdtemp())
>>> orc_sdf.isStreaming
True
>>> orc_sdf.schema == sdf_schema
True