You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:21:21 UTC
[jira] [Updated] (SPARK-16823) One dimensional typed select on
DataFrame does not work as expected
[ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org