GitHub user viirya opened a pull request:
https://github.com/apache/spark/pull/14296
[SPARK-16639][SQL] The query with having condition that contains grouping
by column should work
## What changes were proposed in this pull request?
The query with having condition that contains grouping by column will be
failed during analysis. E.g.,
create table tbl(a int, b string);
select count(b) from tbl group by a + 1 having a + 1 = 2;
Having condition should be able to use grouping by column.
## How was this patch tested?
Jenkins tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/viirya/spark-1 having-contains-grouping-column
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14296.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 #14296
----
commit 5704709fcddf90aa62810d82e4546eadd274e630
Author: Liang-Chi Hsieh <[email protected]>
Date: 2016-07-21T05:03:01Z
The query with having condition that contains grouping by column should
work.
----
---
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]