You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by maropu <gi...@git.apache.org> on 2015/02/05 17:26:50 UTC

[GitHub] spark pull request: [SPARK-2827][GraphX] Add collectDegreeDist to ...

GitHub user maropu opened a pull request:

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

    [SPARK-2827][GraphX] Add collectDegreeDist to compute the distribute of vertex degrees in GraphOps

    Add degree distribution operators in GraphOps for GraphX.

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

    $ git pull https://github.com/maropu/spark CollectDegreeDistSpike

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

    https://github.com/apache/spark/pull/4399.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 #4399
    
----
commit 3faeb910b3fce4090202ee0e768f10dad2edf42f
Author: Takeshi Yamamuro <li...@gmail.com>
Date:   2015-02-05T15:38:21Z

    Add collectDegreeDist to compute the distribute of vertex degrees in GraphOps

----


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-152379647
  
    Merged build started.


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-166502542
  
    @andrewor14 Why this test does not work?


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-165357980
  
    test 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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-73077087
  
    Refactored #1767 and added unit tests.
    I made the original patch simpler since this is a first patch to add a new API.
    If necessary, the other part will be add in a following patch.


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#discussion_r38495441
  
    --- Diff: graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala ---
    @@ -186,6 +188,39 @@ class GraphOps[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]) extends Seriali
       }
     
       /**
    +   * Compute the neighboring vertex degree distribution.
    +   *
    +   * @param edgeDirection the direction along which to compute
    +   * the degree distribution.
    +   *
    +   * @param frequencyCounter the resolution to collect the
    +   * number of degrees. You can select some of pre-defined resolution strategies.
    +   * For more details, see utils.FrequencyDistribution.
    +   *
    +   * @return the distribution of vertex degrees
    +   */
    +  def collectDegreeDist(
    +      edgeDirection: EdgeDirection,
    +      frequencyCounter: FrequencyDistribution = FrequencyDistribution.split(10))
    +    : Array[((Int, Int), Long)] = {
    +    val vertexDegrees = edgeDirection match {
    +      case EdgeDirection.Either =>
    +        graph.vertices.leftJoin(degrees)(
    +          (id, data, degree) => degree.getOrElse(0))
    +      case EdgeDirection.In =>
    +        graph.vertices.leftJoin(inDegrees)(
    +          (id, data, degree) => degree.getOrElse(0))
    +      case EdgeDirection.Out =>
    +        graph.vertices.leftJoin(outDegrees)(
    +          (id, data, degree) => degree.getOrElse(0))
    --- End diff --
    
    minor: these can fit on one line


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-152342718
  
    Ok, I'll fix it.


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-96769692
  
    Can one of the admins verify this patch?


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-136913049
  
    @ankurdave @maropu what's the status of this patch? Is it awaiting reviews? Is it still active?


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-73076293
  
    Can one of the admins verify this patch?


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-166502549
  
    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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-73117942
  
      [Test build #26851 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26851/consoleFull) for   PR 4399 at commit [`3faeb91`](https://github.com/apache/spark/commit/3faeb910b3fce4090202ee0e768f10dad2edf42f).
     * 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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-152381853
  
    @ankurdave @andrewor14 Fixed and could you merge this?


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#discussion_r38492727
  
    --- Diff: graphx/src/test/scala/org/apache/spark/graphx/util/FrequencyDistributionSuite.scala ---
    @@ -0,0 +1,41 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *    http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +
    +package org.apache.spark.graphx.util
    +
    +import org.scalatest.FunSuite
    +
    +import org.apache.spark.graphx.LocalSparkContext
    +
    +class FrequencyDistributionSuite extends FunSuite with LocalSparkContext {
    +
    +  test("FrequencyDistribution.split") {
    +    withSpark { sc =>
    +      val rdd = sc.parallelize(Seq[Int](1, 2, 2, 1, 3, 1, 3, 4, 8, 1, 9))
    +      val freq = FrequencyDistribution.split(2).compute(rdd)
    +      assert(freq.toSeq == Seq(((1, 5), 9), ((6, 9), 2)))
    +    }
    +  }
    +
    +  test("FrequencyDistribution.equiwidth") {
    +    withSpark { sc =>
    +      val rdd = sc.parallelize(Seq[Int](1, 2, 2, 1, 3, 1, 3, 4, 8, 1, 9))
    +      val freq = FrequencyDistribution.equiwidth(2).compute(rdd)
    +      assert(freq.toSeq == Seq(((1, 2), 6), ((3, 4), 3), ((5, 6), 0), ((7, 8), 1), ((9, 10), 1)))
    +    }
    +  }
    +}
    --- End diff --
    
    need new line


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-152384746
  
    Merged build finished. Test FAILed.


---
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-2827][GraphX] Add collectDegreeDist to ...

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

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


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-152379639
  
     Merged build triggered.


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-167643533
  
    Weird, something is wrong with this PR. Maybe re-open it and see if the problem goes away?


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-167933145
  
    @andrewor14 Okay  


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-152382956
  
    **[Test build #44654 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/44654/consoleFull)** for PR 4399 at commit [`c27168f`](https://github.com/apache/spark/commit/c27168fc4899ba669494ac88c048fe8b1198e592).


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-73103554
  
      [Test build #26851 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26851/consoleFull) for   PR 4399 at commit [`3faeb91`](https://github.com/apache/spark/commit/3faeb910b3fce4090202ee0e768f10dad2edf42f).
     * 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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-166727716
  
    I'm not sure. 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-2827][GraphX] Add collectDegreeDist to ...

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

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


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-73117950
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26851/
    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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-136922400
  
    LGTM aside from minor comments


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-73102540
  
    ok to test


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-152384730
  
    **[Test build #44654 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/44654/consoleFull)** for PR 4399 at commit [`c27168f`](https://github.com/apache/spark/commit/c27168fc4899ba669494ac88c048fe8b1198e592).
     * This patch **fails Scala style tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:\n  * `abstract class CentralMomentAgg(child: Expression) extends ImperativeAggregate with Serializable `\n  * `case class Variance(child: Expression,`\n  * `case class VarianceSamp(child: Expression,`\n  * `case class VariancePop(child: Expression,`\n  * `case class Skewness(child: Expression,`\n  * `case class Kurtosis(child: Expression,`\n  * `case class Kurtosis(child: Expression) extends UnaryExpression with AggregateExpression1 `\n  * `case class Skewness(child: Expression) extends UnaryExpression with AggregateExpression1 `\n  * `case class Variance(child: Expression) extends UnaryExpression with AggregateExpression1 `\n  * `case class VariancePop(child: Expression) extends UnaryExpression with AggregateExpression1 `\n  * `case class VarianceSamp(child: Expression) extends UnaryExpression with AggregateExpression1 `\n


---
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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-165547015
  
    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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#issuecomment-167042951
  
    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-2827][GraphX] Add collectDegreeDist to ...

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

    https://github.com/apache/spark/pull/4399#discussion_r38495393
  
    --- Diff: graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala ---
    @@ -186,6 +188,39 @@ class GraphOps[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]) extends Seriali
       }
     
       /**
    +   * Compute the neighboring vertex degree distribution.
    +   *
    +   * @param edgeDirection the direction along which to compute
    +   * the degree distribution.
    +   *
    +   * @param frequencyCounter the resolution to collect the
    +   * number of degrees. You can select some of pre-defined resolution strategies.
    +   * For more details, see utils.FrequencyDistribution.
    +   *
    +   * @return the distribution of vertex degrees
    +   */
    +  def collectDegreeDist(
    +      edgeDirection: EdgeDirection,
    +      frequencyCounter: FrequencyDistribution = FrequencyDistribution.split(10))
    +    : Array[((Int, Int), Long)] = {
    +    val vertexDegrees = edgeDirection match {
    +      case EdgeDirection.Either =>
    +        graph.vertices.leftJoin(degrees)(
    +          (id, data, degree) => degree.getOrElse(0))
    +      case EdgeDirection.In =>
    +        graph.vertices.leftJoin(inDegrees)(
    +          (id, data, degree) => degree.getOrElse(0))
    +      case EdgeDirection.Out =>
    +        graph.vertices.leftJoin(outDegrees)(
    +          (id, data, degree) => degree.getOrElse(0))
    +      case _ =>
    +        throw new SparkException("collectDegreeDist does not support EdgeDirection.Both. Use" +
    +          "EdgeDirection.Either instead.")
    --- End diff --
    
    Need a space in the string concatenation


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