orc(path, mergeSchema=None, pathGlobFilter=None, recursiveFileLookup=None)¶
Loads a ORC file stream, returning the result as a
New in version 2.3.0.
- Other Parameters
- Extra options
For the extra options, refer to Data Source Option in the version you use.
>>> orc_sdf = spark.readStream.schema(sdf_schema).orc(tempfile.mkdtemp()) >>> orc_sdf.isStreaming True >>> orc_sdf.schema == sdf_schema True