GitHub user andrewor14 opened a pull request:

    https://github.com/apache/spark/pull/12427

    [SPARK-14670][SQL] Allow updating SQLMetrics on driver

    ## What changes were proposed in this pull request?
    
    On the SparkUI right now we have this SQLTab that displays accumulator 
values per operator. However, it only displays metrics updated on the 
executors, not on the driver. It is useful to also include driver metrics, e.g. 
broadcast time.
    
    After this patch you can update metrics defined in `SparkPlan.metrics` in 
`doConsume` (if whole stage codegen is enabled) or `doExecute`.
    
    ## How was this patch tested?
    
    `SQLListenerSuite`

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andrewor14/spark sql-metrics-driver

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12427.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12427
    
----
commit 3f57261071195970f5e35797cec81192022d82c5
Author: Andrew Or <[email protected]>
Date:   2016-04-15T20:24:06Z

    Support updating SQL metrics on driver

commit 1cd3995386ced6e53308ba288942f806183b9eda
Author: Andrew Or <[email protected]>
Date:   2016-04-15T21:23:49Z

    Add test

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to