You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "TobiasP (JIRA)" <ji...@apache.org> on 2016/07/31 15:14:20 UTC

[jira] [Created] (SPARK-16823) One dimensional typed select on DataFrame does not work as expected

TobiasP created SPARK-16823:
-------------------------------

             Summary: 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


{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
(v6.3.4#6332)

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