You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by mateiz <gi...@git.apache.org> on 2014/08/17 04:47:07 UTC

[GitHub] spark pull request: [SPARK-3085] [SQL] Use compact data structures...

GitHub user mateiz opened a pull request:

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

    [SPARK-3085] [SQL] Use compact data structures in SQL joins

    This reuses the CompactBuffer from Spark Core to save memory and pointer
    dereferences. I also tried AppendOnlyMap instead of java.util.HashMap
    but unfortunately that slows things down because it seems to do more
    equals() calls and the equals on GenericRow, and especially JoinedRow,
    is pretty expensive.

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

    $ git pull https://github.com/mateiz/spark spark-3085

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

    https://github.com/apache/spark/pull/1993.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 #1993
    
----
commit 5f903ee59bf9e2da8b8b99430cf01a9f15c48fd3
Author: Matei Zaharia <ma...@databricks.com>
Date:   2014-08-17T02:44:54Z

    [SPARK-3085] [SQL] Use compact data structures in SQL joins
    
    This reuses the CompactBuffer from Spark Core to save memory and pointer
    dereferences. I also tried AppendOnlyMap instead of java.util.HashMap
    but unfortunately that slows things down because it seems to do more
    equals() calls and the equals on GenericRow, and especially JoinedRow,
    is pretty expensive.

----


---
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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#issuecomment-52448649
  
      [QA tests have started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18730/consoleFull) for   PR 1993 at commit [`188221e`](https://github.com/apache/spark/commit/188221e41b69741f5060480445945f45e75d0fc5).
     * This patch merges cleanly.


---
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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#issuecomment-52415064
  
      [QA tests have finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18696/consoleFull) for   PR 1993 at commit [`5f903ee`](https://github.com/apache/spark/commit/5f903ee59bf9e2da8b8b99430cf01a9f15c48fd3).
     * This patch **fails** unit 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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#issuecomment-52452175
  
      [QA tests have finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18730/consoleFull) for   PR 1993 at commit [`188221e`](https://github.com/apache/spark/commit/188221e41b69741f5060480445945f45e75d0fc5).
     * This patch **fails** unit 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-3085] [SQL] Use compact data structures...

Posted by mateiz <gi...@git.apache.org>.
Github user mateiz commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1993#discussion_r16336246
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/joins.scala ---
    @@ -19,16 +19,15 @@ package org.apache.spark.sql.execution
     
     import java.util.{HashMap => JavaHashMap}
     
    -import scala.collection.mutable.{ArrayBuffer, BitSet}
     import scala.concurrent.ExecutionContext.Implicits.global
     import scala.concurrent._
     import scala.concurrent.duration._
     
     import org.apache.spark.annotation.DeveloperApi
    -import org.apache.spark.sql.SQLContext
     import org.apache.spark.sql.catalyst.expressions._
     import org.apache.spark.sql.catalyst.plans._
     import org.apache.spark.sql.catalyst.plans.physical._
    +import org.apache.spark.util.collection.{AppendOnlyMap, CompactBuffer}
    --- End diff --
    
    Ah true, I'll remove the import


---
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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#issuecomment-52412076
  
      [QA tests have started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18688/consoleFull) for   PR 1993 at commit [`5f903ee`](https://github.com/apache/spark/commit/5f903ee59bf9e2da8b8b99430cf01a9f15c48fd3).
     * This patch merges cleanly.


---
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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#issuecomment-52527969
  
    Looking at the various runs, this patch only failed the thrift server tests consistently, so I'm going to go ahead and merge it.  Thanks matei.


---
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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#issuecomment-52414173
  
    Jenkins, retest this please


---
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-3085] [SQL] Use compact data structures...

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

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


---
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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#discussion_r16334783
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/joins.scala ---
    @@ -19,16 +19,15 @@ package org.apache.spark.sql.execution
     
     import java.util.{HashMap => JavaHashMap}
     
    -import scala.collection.mutable.{ArrayBuffer, BitSet}
     import scala.concurrent.ExecutionContext.Implicits.global
     import scala.concurrent._
     import scala.concurrent.duration._
     
     import org.apache.spark.annotation.DeveloperApi
    -import org.apache.spark.sql.SQLContext
     import org.apache.spark.sql.catalyst.expressions._
     import org.apache.spark.sql.catalyst.plans._
     import org.apache.spark.sql.catalyst.plans.physical._
    +import org.apache.spark.util.collection.{AppendOnlyMap, CompactBuffer}
    --- End diff --
    
    We aren't actually using AppendOnlyMap though right?


---
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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#issuecomment-52414241
  
      [QA tests have started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18696/consoleFull) for   PR 1993 at commit [`5f903ee`](https://github.com/apache/spark/commit/5f903ee59bf9e2da8b8b99430cf01a9f15c48fd3).
     * This patch merges cleanly.


---
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-3085] [SQL] Use compact data structures...

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

    https://github.com/apache/spark/pull/1993#issuecomment-52412963
  
      [QA tests have finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18688/consoleFull) for   PR 1993 at commit [`5f903ee`](https://github.com/apache/spark/commit/5f903ee59bf9e2da8b8b99430cf01a9f15c48fd3).
     * This patch **fails** unit 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