Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8373

When an RDD has no partition, Python sum will throw "Can not reduce() empty RDD"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.4.1, 1.5.0
    • PySpark
    • None

    Description

      The issue is because "sum" uses "reduce". Replacing it with "fold" will fix it.

      Attachments

        Issue Links

          Activity

            People

              zsxwing Shixiong Zhu
              zsxwing Shixiong Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: