You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/05/20 06:28:12 UTC

[jira] [Commented] (SPARK-15438) Improve the explain of whole-stage codegen

    [ https://issues.apache.org/jira/browse/SPARK-15438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15292805#comment-15292805 ] 

Apache Spark commented on SPARK-15438:
--------------------------------------

User 'davies' has created a pull request for this issue:
https://github.com/apache/spark/pull/13204

> Improve the explain of whole-stage codegen
> ------------------------------------------
>
>                 Key: SPARK-15438
>                 URL: https://issues.apache.org/jira/browse/SPARK-15438
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Davies Liu
>            Assignee: Davies Liu
>
> Currently, the explain of a query with whole-stage codegen looks like this
> {code}
> >>> df = sqlCtx.range(1000);df2 = sqlCtx.range(1000);df.join(pyspark.sql.functions.broadcast(df2), 'id').explain()
> == Physical Plan ==
> WholeStageCodegen
> :  +- Project [id#1L]
> :     +- BroadcastHashJoin [id#1L], [id#4L], Inner, BuildRight, None
> :        :- Range 0, 1, 4, 1000, [id#1L]
> :        +- INPUT
> +- BroadcastExchange HashedRelationBroadcastMode(List(input[0, bigint]))
>    +- WholeStageCodegen
>       :  +- Range 0, 1, 4, 1000, [id#4L]
> {code}
> The problem is that the plan looks much different than logical plan, make us hard to understand the plan (especially when the logical plan is not showed together).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org