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

[SPARK-5514] DataFrame.collect should call executeCollect

Author: Reynold Xin <rxin@databricks.com>

Closes #4313 from rxin/SPARK-5514 and squashes the following commits:

e34e91b [Reynold Xin] [SPARK-5514] DataFrame.collect should call executeCollect
parent dca6faa2
No related branches found
No related tags found
No related merge requests found
...@@ -541,7 +541,7 @@ class DataFrame protected[sql]( ...@@ -541,7 +541,7 @@ class DataFrame protected[sql](
/** /**
* Returns an array that contains all of [[Row]]s in this [[DataFrame]]. * Returns an array that contains all of [[Row]]s in this [[DataFrame]].
*/ */
override def collect(): Array[Row] = rdd.collect() override def collect(): Array[Row] = queryExecution.executedPlan.executeCollect()
/** /**
* Returns a Java list that contains all of [[Row]]s in this [[DataFrame]]. * Returns a Java list that contains all of [[Row]]s in this [[DataFrame]].
......
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