GitHub user willb opened a pull request: https://github.com/apache/spark/pull/1136
SPARK-2180: support HAVING clauses in Hive queries This PR extends Spark's HiveQL support to handle HAVING clauses in aggregations. The HAVING test from the Hive compatibility suite doesn't appear to be runnable from within Spark, so I added a simple comparable test to `HiveQuerySuite`. You can merge this pull request into a Git repository by running: $ git pull https://github.com/willb/spark SPARK-2180 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/1136.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 #1136 ---- commit f43787b155f6dcf306fe3df3395785598dc9d6ca Author: William Benton <wi...@redhat.com> Date: 2014-06-18T20:20:41Z Add support for HAVING clauses in Hive queries. commit 33b12220a0d8437ec821a8ee166112f519a2d1bc Author: William Benton <wi...@redhat.com> Date: 2014-06-19T18:59:54Z Added test coverage for SPARK-2180. This is a simple test for HAVING clauses. ---- --- 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. ---