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

Metric "aggregate time" is incorrect when codegen is off

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: