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

SQL metrics missing after foreach operation on dataframe

    XMLWordPrintableJSON

Details

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

    Description

      No SQL metrics are visible in the SQL tab of SparkUI when foreach is executed on the DataFrame.
      e.g.

      sql("select * from range(10)").collect()
      sql("select * from range(10)").foreach(a => Unit)
      sql("select * from range(10)").foreach(a => println(a))
      

      See collect.png vs. foreach.png

      Attachments

        1. collect.png
          149 kB
          Juliusz Sompolski
        2. foreach.png
          135 kB
          Juliusz Sompolski

        Activity

          People

            viirya L. C. Hsieh
            juliuszsompolski Juliusz Sompolski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: