[
https://issues.apache.org/jira/browse/SPARK-33309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
angerszhu resolved SPARK-33309.
-------------------------------
Resolution: Duplicate
> 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: [email protected]
For additional commands, e-mail: [email protected]