Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33307 Refactor GROUPING ANALYTICS
  3. SPARK-33309

Replace origin GROUPING SETS with new expression

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.1.0
    • None
    • SQL
    • None

    Description

      Replace current GroupingSets just using expression

      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
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            angerszhuuu angerszhu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: