You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "angerszhu (Jira)" <ji...@apache.org> on 2021/04/25 08:50:00 UTC

[jira] [Closed] (SPARK-33309) Replace origin GROUPING SETS with new expression

     [ https://issues.apache.org/jira/browse/SPARK-33309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angerszhu closed SPARK-33309.
-----------------------------

Fixed in other pr

> Replace origin GROUPING SETS with new expression
> ------------------------------------------------
>
>                 Key: SPARK-33309
>                 URL: https://issues.apache.org/jira/browse/SPARK-33309
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: angerszhu
>            Priority: Major
>
> Replace current GroupingSets just using expression
> {code}
> case class GroupingSets(
>     selectedGroupByExprs: Seq[Seq[Expression]],
>     groupByExprs: Seq[Expression],
>     child: LogicalPlan,
>     aggregations: Seq[NamedExpression]) extends UnaryNode {
>   override def output: Seq[Attribute] = aggregations.map(_.toAttribute)
>   // Needs to be unresolved before its translated to Aggregate + Expand because output attributes
>   // will change in analysis.
>   override lazy val resolved: Boolean = false
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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