GitHub user davies opened a pull request: https://github.com/apache/spark/pull/10677
[SPARK-12706] [SQL] grouping() and grouping_id() Grouping() returns a column is aggregated or not, grouping_id() returns the aggregation levels. grouping()/grouping_id() could be used with window function, but does not work in having/sort clause, will be fixed by another PR. You can merge this pull request into a Git repository by running: $ git pull https://github.com/davies/spark grouping Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/10677.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 #10677 ---- commit bcb8d9eecb1b83ae0d62fb88fc5a74c0e3fa9a88 Author: Davies Liu <dav...@databricks.com> Date: 2016-01-09T07:55:30Z add grouping() and grouping_id() commit 0e8317db91e081a30beb22adfb8c3463adcc51ec Author: Davies Liu <dav...@databricks.com> Date: 2016-01-09T21:47:31Z make GROUPING__ID compatible with Hive ---- --- 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