[jira] [Commented] (SPARK-12740) grouping()/grouping_id() should work with having and order by
[ https://issues.apache.org/jira/browse/SPARK-12740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15229854#comment-15229854 ] Apache Spark commented on SPARK-12740: -- User 'davies' has created a pull request for this issue: https://github.com/apache/spark/pull/12235 > grouping()/grouping_id() should work with having and order by > - > > Key: SPARK-12740 > URL: https://issues.apache.org/jira/browse/SPARK-12740 > Project: Spark > Issue Type: Improvement > Components: SQL >Reporter: Davies Liu > > The following query should work > {code} > select a, b, sum(c) from t group by cube(a, b) having grouping(a) = 0 order > by grouping_id(a, b) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-12740) grouping()/grouping_id() should work with having and order by
[ https://issues.apache.org/jira/browse/SPARK-12740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15092602#comment-15092602 ] Davies Liu commented on SPARK-12740: They will be introduced by https://github.com/apache/spark/pull/10677, > grouping()/grouping_id() should work with having and order by > - > > Key: SPARK-12740 > URL: https://issues.apache.org/jira/browse/SPARK-12740 > Project: Spark > Issue Type: Improvement > Components: SQL >Reporter: Davies Liu > > The following query should work > {code} > select a, b, sum(c) from t group by cube(a, b) having grouping(a) = 0 order > by grouping_id(a, b) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-12740) grouping()/grouping_id() should work with having and order by
[ https://issues.apache.org/jira/browse/SPARK-12740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15091418#comment-15091418 ] Liang-Chi Hsieh commented on SPARK-12740: - [~davies] Do we have the functions grouping and grouping_id? I guess that they are not GROUPING__ID, right? > grouping()/grouping_id() should work with having and order by > - > > Key: SPARK-12740 > URL: https://issues.apache.org/jira/browse/SPARK-12740 > Project: Spark > Issue Type: Improvement > Components: SQL >Reporter: Davies Liu > > The following query should work > {code} > select a, b, sum(c) from t group by cube(a, b) having grouping(a) = 0 order > by grouping_id(a, b) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org