SQLMetric — SQL Execution Metric of Physical Operator
SQLMetric
is a SQL metric for monitoring execution of a physical operator.
SQLMetric
is an accumulator (and that is the mechanism to propagate SQL metric updates on the executors to the driver, e.g. web UI).
Note
|
Use Details for Query page in SQL tab in web UI to see the SQL execution metrics of a structured query. |
Note
|
SQL metrics are collected using This is why executing some physical operators (e.g. LocalTableScanExec) may not have SQL metrics in web UI’s Details for Query in SQL tab. Compare the following SQL queries and their execution pages.
|
Metric Type | Create Method | Failed Values Counted? | Description |
---|---|---|---|
no |
Used when… |
||
no |
Used when… |
||
no |
Used when… |
Posting Driver-Side Metric Updates — SQLMetrics.postDriverMetricUpdates
Method
1 2 3 4 5 6 7 8 |
postDriverMetricUpdates( sc: SparkContext, executionId: String, metrics: Seq[SQLMetric]): Unit |
postDriverMetricUpdates
posts a SparkListenerDriverAccumUpdates event to LiveListenerBus when executionId
is specified.
Note
|
postDriverMetricUpdates method belongs to SQLMetrics object.
|
Note
|
|