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

select(df, c("col1", "col2")) fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.5.2, 1.6.0
    • Component/s: SparkR
    • Labels:
      None

      Description

      The help page for 'select' gives an example of
      select(df, c("col1", "col2"))

      However, this fails with assertion:

      java.lang.AssertionError: assertion failed
      at scala.Predef$.assert(Predef.scala:165)
      at org.apache.spark.api.r.SerDe$.readStringBytes(SerDe.scala:92)
      at org.apache.spark.api.r.SerDe$.readString(SerDe.scala:99)
      at org.apache.spark.api.r.SerDe$.readTypedObject(SerDe.scala:63)
      at org.apache.spark.api.r.SerDe$.readObject(SerDe.scala:52)
      at org.apache.spark.api.r.RBackendHandler$$anonfun$readArgs$1.apply(RBackendHandler.scala:182)
      at org.apache.spark.api.r.RBackendHandler$$anonfun$readArgs$1.apply(RBackendHandler.scala:181)

      And then none of the functions will work with following error:
      > head(df)
      Error in if (returnStatus != 0) { : argument is of length zero

        Attachments

          Activity

            People

            • Assignee:
              felixcheung Felix Cheung
              Reporter:
              adrian555 Weiqiang Zhuang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: