Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22251

Metric "aggregate time" is incorrect when codegen is off

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • SQL
    • None

    Description

      When whole-stage codegen is off, metric "aggregate time" is not set correctly.

      Repro:

      1. spark.conf.set("spark.sql.codegen.wholeStage", false)
      2. spark.range(5).crossJoin(spark.range(5)).toDF("a","b").groupBy("a").agg(sum("b")).show
      3. In Spark UI > SQL you can see that "aggregate time total" is 0 in "HashAggregate" boxes

      Attachments

        Activity

          People

            ala.luszczak Ala Luszczak
            ala.luszczak Ala Luszczak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: