You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2017/10/25 08:28:00 UTC

[jira] [Commented] (SPARK-22350) Select grouping__id from subquery

    [ https://issues.apache.org/jira/browse/SPARK-22350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16218246#comment-16218246 ] 

Apache Spark commented on SPARK-22350:
--------------------------------------

User 'jinxing64' has created a pull request for this issue:
https://github.com/apache/spark/pull/19573

> Select grouping__id from subquery
> ---------------------------------
>
>                 Key: SPARK-22350
>                 URL: https://issues.apache.org/jira/browse/SPARK-22350
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: jin xing
>
> Currently, sql below will fail:
> SELECT cnt, k2, k3, grouping__id
> FROM
> (SELECT count(*) as cnt, k2, k3, grouping__id
> FROM t1
> GROUP BY k2, k3
> GROUPING SETS(k2, k3)) t2
> Can we support selecting grouping__id from subquery ?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org