GitHub user marmbrus opened a pull request:

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

    [SQL][WIP] Visualizing query plans with graphviz

    Implicitly adds a method `.viz` to all trees that builds a png using 
graphviz.
    
    For example:
    ```scala
    sql(""""
      SELECT a.value 
      FROM src a 
        JOIN srcpart b 
      WHERE a.key = b.key AND hr = 1""").queryExecution.executedPlan.viz
    ```
    
    
![queryplan7690500953161842945](https://cloud.githubusercontent.com/assets/527/4231604/16f7d7a8-3993-11e4-89c3-a918b2a0b3b1.png)


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

    $ git pull https://github.com/marmbrus/spark graphViz

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

    https://github.com/apache/spark/pull/2354.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 #2354
    
----
commit cc503757fb953a25997d85a869ca0aa2267d4526
Author: Michael Armbrust <mich...@databricks.com>
Date:   2014-09-11T09:03:12Z

    WIP: Visualizing query plans with graphviz

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to