You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2014/07/15 03:54:04 UTC
[jira] [Created] (SPARK-2483) HiveQL parses accessing struct fields
in an array incorrectly.
Michael Armbrust created SPARK-2483:
---------------------------------------
Summary: HiveQL parses accessing struct fields in an array incorrectly.
Key: SPARK-2483
URL: https://issues.apache.org/jira/browse/SPARK-2483
Project: Spark
Issue Type: Bug
Components: SQL
Reporter: Michael Armbrust
Assignee: Michael Armbrust
Test case:
{code}
case class Data(a: Int, B: Int, n: Nested, nestedArray: Seq[Nested])
case class Nested(a: Int, B: Int)
test("nested repeated resolution") {
TestHive.sparkContext.parallelize(Data(1, 2, Nested(1,2), Seq(Nested(1,2))) :: Nil)
.registerAsTable("nestedRepeatedTest")
hql("SELECT nestedArray[0].a FROM nestedRepeatedTest").collect()
}
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)