You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Felix Cheung (JIRA)" <ji...@apache.org> on 2017/02/05 19:39:42 UTC

[jira] [Resolved] (SPARK-19452) Fix bug in the name assignment method in SparkR

     [ https://issues.apache.org/jira/browse/SPARK-19452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Cheung resolved SPARK-19452.
----------------------------------
          Resolution: Fixed
            Assignee: Wayne Zhang
       Fix Version/s: 2.2.0
    Target Version/s: 2.2.0

> Fix bug in the name assignment method in SparkR
> -----------------------------------------------
>
>                 Key: SPARK-19452
>                 URL: https://issues.apache.org/jira/browse/SPARK-19452
>             Project: Spark
>          Issue Type: Bug
>          Components: SparkR
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: Wayne Zhang
>            Assignee: Wayne Zhang
>             Fix For: 2.2.0
>
>
> The names method fails to check for validity of the assignment values. This can be fixed by calling colnames within names. See example below.
> {code}
> df <- suppressWarnings(createDataFrame(iris))
> # this is error
> colnames(df) <- NULL
> # this should report error
> names(df) <- NULL
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org