GitHub user rxin opened a pull request:

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

    [SPARK-9733][SQL] Improve explain message for data source scan node.

    All data sources show up as "PhysicalRDD" in physical plan explain. It'd be 
better if we can show the name of the data source.
    
    Without this patch:
    ```
    == Physical Plan ==
    NewAggregate with UnsafeHybridAggregationIterator ArrayBuffer(date#0, 
cat#1) ArrayBuffer((sum(CAST((CAST(count#2, IntegerType) + 1), 
LongType))2,mode=Final,isDistinct=false))
     Exchange hashpartitioning(date#0,cat#1)
      NewAggregate with UnsafeHybridAggregationIterator ArrayBuffer(date#0, 
cat#1) ArrayBuffer((sum(CAST((CAST(count#2, IntegerType) + 1), 
LongType))2,mode=Partial,isDistinct=false))
       PhysicalRDD [date#0,cat#1,count#2], MapPartitionsRDD[3] at
    ```
    
    With this patch:
    ```
    == Physical Plan ==
    TungstenAggregate(key=[date#0,cat#1], value=[(sum(CAST((CAST(count#2, 
IntegerType) + 1), LongType)),mode=Final,isDistinct=false)]
     Exchange hashpartitioning(date#0,cat#1)
      TungstenAggregate(key=[date#0,cat#1], value=[(sum(CAST((CAST(count#2, 
IntegerType) + 1), LongType)),mode=Partial,isDistinct=false)]
       ConvertToUnsafe
        Scan 
ParquetRelation[file:/scratch/rxin/spark/sales4][date#0,cat#1,count#2]
    ```

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

    $ git pull https://github.com/rxin/spark SPARK-9733

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

    https://github.com/apache/spark/pull/8024.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 #8024
    
----
commit 5084675ce61e669c6eac8c19261b5195ed35bb2d
Author: Reynold Xin <[email protected]>
Date:   2015-08-07T05:45:13Z

    [SPARK-9733][SQL] Improve explain message for data source scan node.

----


---
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