Hossein Falaki commented on SPARK-17902:

Thanks for the pointer [~shivaram]. I will submit it patch with a regression 
test. The only obvious side-effect of this bug, is that collected type will be 
String, while it should have been a Factor. What makes it bad is that it is in 
our documentation and it used to work, so it is a regression.

> collect() ignores stringsAsFactors
> ----------------------------------
>                 Key: SPARK-17902
>                 URL: https://issues.apache.org/jira/browse/SPARK-17902
>             Project: Spark
>          Issue Type: Bug
>          Components: SparkR
>    Affects Versions: 2.0.1
>            Reporter: Hossein Falaki
> `collect()` function signature includes an optional flag named 
> `stringsAsFactors`. It seems it is completely ignored.
> {code}
> str(collect(createDataFrame(iris), stringsAsFactors = TRUE)))
> {code}

This message was sent by Atlassian JIRA

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

Reply via email to