Description
The issue is because "sum" uses "reduce". Replacing it with "fold" will fix it.
Attachments
Issue Links
- relates to
-
SPARK-6878 Sum on empty RDD fails with exception
- Resolved
- links to
The issue is because "sum" uses "reduce". Replacing it with "fold" will fix it.
SPARK-6878 Sum on empty RDD fails with exception