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

Make SparkR apply() functions robust to workers that return empty data.frame

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.2.0
    • None
    • SparkR

    Description

      When using gapply() (or other members of apply() family) with a schema, Spark will try to parse data returned form the R process on each worker as Spark DataFrame Rows based on the schema. In this case our provided schema suggests that we have six column. When an R worker returns results to JVM, SparkSQL will try to access its columns one by one and cast them to proper types. If R worker returns nothing, JVM will throw ArrayIndexOutOfBoundsException exception.

      Attachments

        Activity

          People

            Unassigned Unassigned
            falaki Hossein Falaki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: