Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions python/pyspark/sql/readwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,6 @@ def func(iterator):
def orc(self, path):
"""Loads ORC files, returning the result as a :class:`DataFrame`.

.. note:: Currently ORC support is only available together with Hive support.

>>> df = spark.read.orc('python/test_support/sql/orc_partitioned')
>>> df.dtypes
[('a', 'bigint'), ('b', 'int'), ('c', 'int')]
Expand Down Expand Up @@ -950,8 +948,6 @@ def csv(self, path, mode=None, compression=None, sep=None, quote=None, escape=No
def orc(self, path, mode=None, partitionBy=None, compression=None):
"""Saves the content of the :class:`DataFrame` in ORC format at the specified path.

.. note:: Currently ORC support is only available together with Hive support.

:param path: the path in any Hadoop supported file system
:param mode: specifies the behavior of the save operation when data already exists.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
*
* @param path input path
* @since 1.5.0
* @note Currently, this method can only be used after enabling Hive support.
*/
def orc(path: String): DataFrame = {
// This method ensures that calls that explicit need single argument works, see SPARK-16009
Expand All @@ -691,7 +690,6 @@ class DataFrameReader private[sql](sparkSession: SparkSession) extends Logging {
*
* @param paths input paths
* @since 2.0.0
* @note Currently, this method can only be used after enabling Hive support.
*/
@scala.annotation.varargs
def orc(paths: String*): DataFrame = format("orc").load(paths: _*)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,6 @@ final class DataFrameWriter[T] private[sql](ds: Dataset[T]) {
* </ul>
*
* @since 1.5.0
* @note Currently, this method can only be used after enabling Hive support
*/
def orc(path: String): Unit = {
format("orc").save(path)
Expand Down