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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.2.3, 2.3.3, 2.4.1, 3.0.0
    • Component/s: SQL
    • Labels:
      None
    • Target Version/s:

      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. Homepage - Material Design
          3.36 MB
          Chris Bogan
        2. apache-opennlp-1.9.1-bin.tar.gz
          10.62 MB
          Chris Bogan
        3. request_handler_interface.json
          0.2 kB
          Chris Bogan

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: