cloud-fan commented on a change in pull request #27599: [SPARK-30846][CORE] Add 
AccumulatorV2 API in JavaSparkContext
URL: https://github.com/apache/spark/pull/27599#discussion_r379985294
 
 

 ##########
 File path: core/src/test/java/test/org/apache/spark/JavaAPISuite.java
 ##########
 @@ -280,15 +280,15 @@ public void sortBy() {
 
   @Test
   public void foreach() {
-    LongAccumulator accum = sc.sc().longAccumulator();
 
 Review comment:
   is it recommended to get `SparkContext` from `JavaSparkContext` and call 
APIs? cc @zsxwing @srowen @JoshRosen 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to