You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sun Rui (JIRA)" <ji...@apache.org> on 2015/11/17 14:31:11 UTC

[jira] [Created] (SPARK-11781) SparkR has problem in inferring type of raw type

Sun Rui created SPARK-11781:
-------------------------------

             Summary: SparkR has problem in inferring type of raw type
                 Key: SPARK-11781
                 URL: https://issues.apache.org/jira/browse/SPARK-11781
             Project: Spark
          Issue Type: Bug
          Components: SparkR
    Affects Versions: 1.5.1
            Reporter: Sun Rui


```
> bytes <- as.raw(c(1, 2 ,3))
> bytes
[1] 01 02 03
> df <- createDataFrame(sqlContext, list(list(bytes)))
> printSchema(df)
root
 |-- _1: array (nullable = true)
 |    |-- element: binary (containsNull = true)
> SparkR:::infer_type(bytes)
[1] "array<binary>"
```
The schema is incorrect. It should be "binary" instead of "array<binary>". 

Also there is problem when collecting a DataFrame of which any column is of binary type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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