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

Hyukjin Kwon updated SPARK-16823:
---------------------------------
    Labels: bulk-closed  (was: )

> One dimensional typed select on DataFrame does not work as expected
> -------------------------------------------------------------------
>
>                 Key: SPARK-16823
>                 URL: https://issues.apache.org/jira/browse/SPARK-16823
>             Project: Spark
>          Issue Type: Bug
>            Reporter: TobiasP
>            Priority: Minor
>              Labels: bulk-closed
>
> {code}
> spark.sqlContext.createDataFrame(for { x <- 1 to 4; y <- 1 to 4 } yield ((x, 
> y),x)).select($"_1".as[(Int,Int)], $"_2".as[Int])
> {code}
> works, so I would expect
> {code}
> spark.sqlContext.createDataFrame(for { x <- 1 to 4; y <- 1 to 4 } yield ((x, 
> y),x)).select($"_1".as[(Int,Int)])
> {code}
> to work too, but it expects a wrapping type around the tuple.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to