GitHub user zsxwing opened a pull request:
https://github.com/apache/spark/pull/13740
[SPARK-16020][SQL]Fix complete mode aggregation with console sink
## What changes were proposed in this pull request?
We cannot use `limit` on DataFrame in ConsoleSink because it will use a
wrong planner. This PR just collects `DataFrame` and calls `show` on a batch
DataFrame based on the result. This is fine since ConsoleSink is only for
debugging.
## How was this patch tested?
Manually confirmed ConsoleSink now works with complete mode aggregation.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zsxwing/spark complete-console
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13740.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13740
----
commit 7c63e792c0b2c4c39f8a568aa70da607b53de81e
Author: Shixiong Zhu <[email protected]>
Date: 2016-06-17T17:53:24Z
Fix complete mode aggregation with console sink
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]