Github user yhuai commented on a diff in the pull request:
https://github.com/apache/spark/pull/4068#discussion_r23665528
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveResolutionSuite.scala
---
@@ -38,6 +38,15 @@ class HiveResolutionSuite extends HiveComparisonTest {
sql("SELECT a[0].A.A from nested").queryExecution.analyzed
}
+ test("SPARK-5278: check ambiguous reference to fields") {
+ jsonRDD(sparkContext.makeRDD(
+ """{"a": [{"b": 1, "B": 2}]}""" :: Nil)).registerTempTable("nested")
+ val exception = intercept[RuntimeException] {
+ println(sql("SELECT a[0].b from nested").queryExecution.analyzed)
--- End diff --
Can you add a comment at here to explain what we are expecting? Also, you
can remove `println`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]