pyspark.sql.streaming.DataStreamReader.orc¶
-
DataStreamReader.
orc
(path, mergeSchema=None, pathGlobFilter=None, recursiveFileLookup=None)[source]¶ Loads a ORC file stream, returning the result as a
DataFrame
.New in version 2.3.0.
- 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