venkata91 commented on a change in pull request #33644:
URL: https://github.com/apache/spark/pull/33644#discussion_r687280002
##########
File path: core/src/test/java/test/org/apache/spark/JavaAPISuite.java
##########
@@ -541,7 +541,7 @@ public void treeAggregate() {
JavaRDD<Integer> rdd = sc.parallelize(Arrays.asList(-5, -4, -3, -2, -1, 1,
2, 3, 4), 10);
Function2<Integer, Integer, Integer> add = (a, b) -> a + b;
for (int depth = 1; depth <= 10; depth++) {
- int sum = rdd.treeAggregate(0, add, add, depth);
+ int sum = rdd.treeAggregate(0, add, add, depth, false);
Review comment:
The other one is not overloaded right, it has additional param `depth`.
This seems to be java <-> scala interoperability issue which is why even with
default param, the value needs to be specified I think. Not exactly the same
case but similar problem discussed here -
https://stackoverflow.com/questions/13059528/instantiate-a-scala-class-from-java-and-use-the-default-parameters-of-the-const
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]