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

SQL metrics missing after foreach operation on dataframe

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      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. foreach.png
          135 kB
          Juliusz Sompolski
        2. collect.png
          149 kB
          Juliusz Sompolski

          Activity

            People

            • Assignee:
              viirya Liang-Chi Hsieh
              Reporter:
              juliuszsompolski Juliusz Sompolski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: