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

toPandas with Arrow enabled doesn't show metrics in Query UI.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.5, 3.0.0
    • Fix Version/s: 2.4.7, 3.0.0
    • Component/s: PySpark, R
    • Labels:
      None

      Description

      When calling toPandas, usually Query UI shows each plan node's metric and corresponding Stage ID and Task ID:

      >>> df = spark.createDataFrame([(1, 10, 'abc'), (2, 20, 'def')], schema=['x', 'y', 'z'])
      >>> df.toPandas()
         x   y    z
      0  1  10  abc
      1  2  20  def
      

      but if Arrow execution is enabled, it shows only plan nodes and the duration is not correct:

      >>> spark.conf.set('spark.sql.execution.arrow.pyspark.enabled', True)
      >>> df.toPandas()
         x   y    z
      0  1  10  abc
      1  2  20  def

       

        Attachments

        1. Screen Shot 2020-06-03 at 4.47.07 PM.png
          44 kB
          Takuya Ueshin
        2. Screen Shot 2020-06-03 at 4.47.27 PM.png
          36 kB
          Takuya Ueshin

          Activity

            People

            • Assignee:
              ueshin Takuya Ueshin
              Reporter:
              ueshin Takuya Ueshin
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: