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

pyspark reduceByKeyAndWindow does not handle unspecified invFunc (invFunc=None)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.2
    • Fix Version/s: 1.3.2, 1.4.2, 1.5.3, 1.6.0
    • Component/s: PySpark
    • Labels:
      None

      Description

      invFunc is optional and can be None. Instead of invFunc (the parameter) invReduceFunc (a local function) was checked for trueness (that is, not None, in this context). A local function is never None,
      thus the case of invFunc=none (a common one when inverse reduction is not defined) is treated incorrectly, resulting in loss of data.

        Attachments

          Activity

            People

            • Assignee:
              david.tolpin@gmail.com David Tolpin
              Reporter:
              david.tolpin@gmail.com David Tolpin
              Shepherd:
              dont_ping_this_account
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: