-
Notifications
You must be signed in to change notification settings - Fork 28.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-1958] Calling .collect() on a SchemaRDD should call executeCollect() on the underlying query plan. #939
Conversation
…lect() on the underlying query plan.
Merged build triggered. |
Merged build started. |
LGTM. |
// Overriden RDD actions | ||
// ======================================================================= | ||
|
||
override def collect() = queryExecution.executedPlan.executeCollect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yay
Actually - please define the return type explicitly for public methods. |
Merged build finished. |
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15341/ |
Actually a lot of tests are failing ... |
Merged build triggered. |
Merged build started. |
@rxin Shame... underestimated this issue and didn't run full test locally :( I think the problem is that |
Merged build finished. All automated tests passed. |
All automated tests passed. |
Thanks. I've merged this in master & branch-1.0. |
…lect() on the underlying query plan. In cases like `Limit` and `TakeOrdered`, `executeCollect()` makes optimizations that `execute().collect()` will not. Author: Cheng Lian <lian.cs.zju@gmail.com> Closes #939 from liancheng/spark-1958 and squashes the following commits: bdc4a14 [Cheng Lian] Copy rows to present immutable data to users 8250976 [Cheng Lian] Added return type explicitly for public API 192a25c [Cheng Lian] [SPARK-1958] Calling .collect() on a SchemaRDD should call executeCollect() on the underlying query plan. (cherry picked from commit d000ca9) Signed-off-by: Reynold Xin <rxin@apache.org>
In cases like
Limit
andTakeOrdered
,executeCollect()
makes optimizations thatexecute().collect()
will not.