diff options
author | Reynold Xin <rxin@databricks.com> | 2015-11-09 16:22:15 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-11-09 16:22:15 -0800 |
commit | 675c7e723cadff588405c23826a00686587728b8 (patch) | |
tree | daf7d4bc541beffcb88e8e2ee66019dc33310219 | |
parent | 9c740a9ddf6344a03b4b45380eaf0cfc6e2299b5 (diff) | |
download | spark-675c7e723cadff588405c23826a00686587728b8.tar.gz spark-675c7e723cadff588405c23826a00686587728b8.tar.bz2 spark-675c7e723cadff588405c23826a00686587728b8.zip |
[SPARK-11564][SQL] Fix documentation for DataFrame.take/collect
Author: Reynold Xin <rxin@databricks.com>
Closes #9557 from rxin/SPARK-11564-1.
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala b/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala index 8ab958adad..d25807cf8d 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala @@ -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]]. * |