Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/42#discussion_r10684119
  
    --- Diff: core/src/test/java/org/apache/spark/JavaAPISuite.java ---
    @@ -402,16 +403,16 @@ public Boolean call(Double x) {
     
       @Test
       public void javaDoubleRDDHistoGram() {
    -   JavaDoubleRDD rdd = sc.parallelizeDoubles(Arrays.asList(1.0, 2.0, 3.0, 
4.0));
    -   // Test using generated buckets
    -   Tuple2<double[], long[]> results = rdd.histogram(2);
    -   double[] expected_buckets = {1.0, 2.5, 4.0};
    -   long[] expected_counts = {2, 2};
    -   Assert.assertArrayEquals(expected_buckets, results._1, 0.1);
    -   Assert.assertArrayEquals(expected_counts, results._2);
    -   // Test with provided buckets
    -   long[] histogram = rdd.histogram(expected_buckets);
    -   Assert.assertArrayEquals(expected_counts, histogram);
    +    JavaDoubleRDD rdd = sc.parallelizeDoubles(Arrays.asList(1.0, 2.0, 3.0, 
4.0));
    +    // Test using generated buckets
    +    Tuple2<double[], long[]> results = rdd.histogram(2);
    +    double[] expected_buckets = {1.0, 2.5, 4.0};
    +    long[] expected_counts = {2, 2};
    +    Assert.assertArrayEquals(expected_buckets, results._1, 0.1);
    +    Assert.assertArrayEquals(expected_counts, results._2);
    +    // Test with provided buckets
    +    long[] histogram = rdd.histogram(expected_buckets);
    +    Assert.assertArrayEquals(expected_counts, histogram);
    --- End diff --
    
    Indent only


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

Reply via email to