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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org