Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26221 Improve Spark SQL instrumentation and metrics
  3. SPARK-26327

Metrics in FileSourceScanExec not update correctly while relation.partitionSchema is set

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.2.3, 2.3.3, 2.4.1, 3.0.0
    • SQL
    • None

    Description

      As currently approach in `FileSourceScanExec`, the metrics of "numFiles" and "metadataTime"(fileListingTime) were updated while lazy val `selectedPartitions` initialized in the scenario of relation.partitionSchema is set. But `selectedPartitions` will be initialized by `metadata` at first, which is called by `queryExecution.toString` in `SQLExecution.withNewExecutionId`. So while the `SQLMetrics.postDriverMetricUpdates` called, there's no corresponding liveExecutions in SQLAppStatusListener, the metrics update is not work.

      Attachments

        1. request_handler_interface.json
          0.2 kB
          Chris Bogan
        2. Homepage - Material Design
          3.36 MB
          Chris Bogan
        3. apache-opennlp-1.9.1-bin.tar.gz
          10.62 MB
          Chris Bogan

        Activity

          People

            XuanYuan Yuanjian Li
            XuanYuan Yuanjian Li
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: