[ 
https://issues.apache.org/jira/browse/SPARK-10863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15003548#comment-15003548
 ] 

Felix Cheung commented on SPARK-10863:
--------------------------------------

[~olarayej] I"m a little confused - I thought from discussions that for those 
complex types we couldn't return R type for, we would return NA? From this test 
it looks like it is return the JVM/Scala type instead

{code}
x <- createDataFrame(sqlContext, list(list(as.environment(
    list("a"="b", "c"="d", "e"="f")))))
  expect_equal(coltypes(x), "map<string,string>")
{code}

This is a little strange since it would neither match simple/atomic types 
returned (no 'string') nor match anything in R (no 'map').


> Method coltypes() to return the R column types of a DataFrame
> -------------------------------------------------------------
>
>                 Key: SPARK-10863
>                 URL: https://issues.apache.org/jira/browse/SPARK-10863
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SparkR
>    Affects Versions: 1.5.0
>            Reporter: Oscar D. Lara Yejas
>            Assignee: Oscar D. Lara Yejas
>             Fix For: 1.6.0
>
>




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

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

Reply via email to