Github user cloud-fan commented on the pull request:

    https://github.com/apache/spark/pull/12858#issuecomment-220208358
  
    Conceptually long accumulator is enough for integral accumulation, that's 
why we don't implement `IntAccumulator`. However, `LongAccumulator` can't be 
used as `Accumulator[Int]`, the type system doesn't allow it.
    
    Some tests in `AccumulatorV2Suite` uses int (eg. 0 not 0L) because compiler 
can cast it to long for us. (that why we think int accumulator is not that 
useful, as int can always be casted to long)


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

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

Reply via email to