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

Fix bug in the name assignment method in SparkR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.2.0
    • 2.2.0
    • SparkR
    • None

    Description

      The names method fails to check for validity of the assignment values. This can be fixed by calling colnames within names. See example below.

      df <- suppressWarnings(createDataFrame(iris))
      # this is error
      colnames(df) <- NULL
      # this should report error
      names(df) <- NULL
      

      Attachments

        Activity

          People

            actuaryzhang Wayne Zhang
            actuaryzhang Wayne Zhang
            Felix Cheung Felix Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: