GitHub user rxin opened a pull request: https://github.com/apache/spark/pull/13367
[SPARK-15636][SQL] Make aggregate expressions more concise in explain ## What changes were proposed in this pull request? This patch reduces the verbosity of aggregate functions in explain (but does not actually remove any information). For the following command: ``` spark.range(10).selectExpr("sum(id) + 1", "count(distinct id)").explain(true) ``` Before: coming soon After: ``` == Physical Plan == *TungstenAggregate(key=[], functions=[sum(id#0L),count(distinct id#0L)], output=[(sum(id) + 1)#3L,count(DISTINCT id)#16L]) +- Exchange SinglePartition, None +- *TungstenAggregate(key=[], functions=[merge_sum(id#0L),partial_count(distinct id#0L)], output=[sum#18L,count#21L]) +- *TungstenAggregate(key=[id#0L], functions=[merge_sum(id#0L)], output=[id#0L,sum#18L]) +- Exchange hashpartitioning(id#0L, 5), None +- *TungstenAggregate(key=[id#0L], functions=[partial_sum(id#0L)], output=[id#0L,sum#18L]) +- *Range (0, 10, splits=2) ``` ## How was this patch tested? Tested manually. You can merge this pull request into a Git repository by running: $ git pull https://github.com/rxin/spark SPARK-15636 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/13367.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 #13367 ---- commit 95ad039689f2bd667b4d930a7d774401aff6c757 Author: Reynold Xin <r...@databricks.com> Date: 2016-05-27T22:39:17Z [SPARK-15636][SQL] Make aggregate expressions more concise in explain ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org