You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by yhuai <gi...@git.apache.org> on 2015/12/01 23:49:22 UTC

[GitHub] spark pull request: [SPARK-11596] [SQL] In TreeNode's argString, i...

GitHub user yhuai opened a pull request:

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

    [SPARK-11596] [SQL] In TreeNode's argString, if a TreeNode is not a child of the current TreeNode, we will only return the simpleString.

    In TreeNode's argString, if a TreeNode is not a child of the current TreeNode, we will only return the simpleString.
    
    I tested the [following case provided by Cristian](https://issues.apache.org/jira/browse/SPARK-11596?focusedCommentId=15019241&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15019241).
    ```
    val c = (1 to 20).foldLeft[Option[DataFrame]] (None) { (curr, idx) =>
        println(s"PROCESSING >>>>>>>>>>> $idx")
        val df = sqlContext.sparkContext.parallelize((0 to 10).zipWithIndex).toDF("A", "B")
        val union = curr.map(_.unionAll(df)).getOrElse(df)
        union.cache()
        Some(union)
      }
    
    c.get.explain(true)
    ```
    
    Without the change, `c.get.explain(true)` took 100s. With the change, `c.get.explain(true)` took 26ms.
    
    https://issues.apache.org/jira/browse/SPARK-11596

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

    $ git pull https://github.com/yhuai/spark SPARK-11596

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

    https://github.com/apache/spark/pull/10079.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 #10079
    
----
commit b25b3dea37f731e57d022c3a0db34b11722ee9a5
Author: Yin Huai <yh...@databricks.com>
Date:   2015-12-01T22:45:18Z

    In TreeNode's argString, if a TreeNode is not a child of the current TreeNode, we will only return the simpleString.

----


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

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


[GitHub] spark pull request: [SPARK-11596] [SQL] In TreeNode's argString, i...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10079#issuecomment-161146306
  
    **[Test build #47007 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47007/consoleFull)** for PR 10079 at commit [`b25b3de`](https://github.com/apache/spark/commit/b25b3dea37f731e57d022c3a0db34b11722ee9a5).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


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

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


[GitHub] spark pull request: [SPARK-11596] [SQL] In TreeNode's argString, i...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10079#issuecomment-161123062
  
    **[Test build #47007 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47007/consoleFull)** for PR 10079 at commit [`b25b3de`](https://github.com/apache/spark/commit/b25b3dea37f731e57d022c3a0db34b11722ee9a5).


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

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


[GitHub] spark pull request: [SPARK-11596] [SQL] In TreeNode's argString, i...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10079#issuecomment-161146443
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47007/
    Test PASSed.


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

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


[GitHub] spark pull request: [SPARK-11596] [SQL] In TreeNode's argString, i...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


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

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


[GitHub] spark pull request: [SPARK-11596] [SQL] In TreeNode's argString, i...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10079#issuecomment-161146442
  
    Merged build finished. Test PASSed.


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

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


[GitHub] spark pull request: [SPARK-11596] [SQL] In TreeNode's argString, i...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/10079#issuecomment-161148706
  
    Thanks, merged to master and 1.6


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

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