aboutsummaryrefslogtreecommitdiff
path: root/sql/hive
diff options
context:
space:
mode:
authorDavies Liu <davies@databricks.com>2016-04-07 11:51:34 -0700
committerDavies Liu <davies.liu@gmail.com>2016-04-07 11:51:34 -0700
commitaa852215f82876977d164f371627e894e86baacc (patch)
treeb62a001aa6d74fda188a12f96dde53230b94ed93 /sql/hive
parent8dcb0c7c974e9707933ac2ae6ce837e765a5e81a (diff)
downloadspark-aa852215f82876977d164f371627e894e86baacc.tar.gz
spark-aa852215f82876977d164f371627e894e86baacc.tar.bz2
spark-aa852215f82876977d164f371627e894e86baacc.zip
[SPARK-12740] [SPARK-13932] support grouping()/grouping_id() in having/order clause
## What changes were proposed in this pull request? This PR brings the support of using grouping()/grouping_id() in HAVING/ORDER BY clause. The resolved grouping()/grouping_id() will be replaced by unresolved "spark_gropuing_id" virtual attribute, then resolved by ResolveMissingAttribute. This PR also fix the HAVING clause that access a grouping column that is not presented in SELECT clause, for example: ```sql select count(1) from (select 1 as a) t group by a having a > 0 ``` ## How was this patch tested? Add new tests. Author: Davies Liu <davies@databricks.com> Closes #12235 from davies/grouping_having.
Diffstat (limited to 'sql/hive')
0 files changed, 0 insertions, 0 deletions