B @`n@shdZddlZddlmZmZmZddlmZddlm Z erHddl m Z d eeee ddd d Z dS) z orc compat N) TYPE_CHECKINGListOptional)FilePathOrBuffer) get_handle) DataFramer)pathcolumnsreturnc Ksbddl}tj|jdkr"tdt|ddd(}|j|j }|j fd|i| SQRXdS) ay Load an ORC object from the file path, returning a DataFrame. .. versionadded:: 1.0.0 Parameters ---------- path : str, path object or file-like object Any valid string path is acceptable. The string could be a URL. Valid URL schemes include http, ftp, s3, and file. For file URLs, a host is expected. A local file could be: ``file://localhost/path/to/table.orc``. If you want to pass in a path object, pandas accepts any ``os.PathLike``. By file-like object, we refer to objects with a ``read()`` method, such as a file handle (e.g. via builtin ``open`` function) or ``StringIO``. columns : list, default None If not None, only these columns will be read from the file. **kwargs Any additional kwargs are passed to pyarrow. Returns ------- DataFrame rNz0.13.0z&pyarrow must be >= 0.13.0 for read_orcrbF)Zis_textr ) pyarrow distutilsversionZ LooseVersion __version__ ImportErrorrZorcZORCFilehandlereadZ to_pandas)rr kwargsr ZhandlesZorc_filer1/tmp/pip-unpacked-wheel-q9tj5l6a/pandas/io/orc.pyread_orcs r)N)__doc__r typingrrrZpandas._typingrZpandas.io.commonrZpandasrstrrrrrrs