Skip to content
Snippets Groups Projects
Commit 675c7e72 authored by Reynold Xin's avatar Reynold Xin
Browse files

[SPARK-11564][SQL] Fix documentation for DataFrame.take/collect

Author: Reynold Xin <rxin@databricks.com>

Closes #9557 from rxin/SPARK-11564-1.
parent 9c740a9d
No related branches found
No related tags found
No related merge requests found
......@@ -1479,8 +1479,8 @@ class DataFrame private[sql](
/**
* Returns the first `n` rows in the [[DataFrame]].
*
* Running take requires moving data into the application's driver process, and doing so on a
* very large dataset can crash the driver process with OutOfMemoryError.
* Running take requires moving data into the application's driver process, and doing so with
* a very large `n` can crash the driver process with OutOfMemoryError.
*
* @group action
* @since 1.3.0
......@@ -1501,8 +1501,8 @@ class DataFrame private[sql](
/**
* Returns an array that contains all of [[Row]]s in this [[DataFrame]].
*
* Running take requires moving data into the application's driver process, and doing so with
* a very large `n` can crash the driver process with OutOfMemoryError.
* Running collect requires moving all the data into the application's driver process, and
* doing so on a very large dataset can crash the driver process with OutOfMemoryError.
*
* For Java API, use [[collectAsList]].
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment