dongjoon-hyun commented on a change in pull request #23353: [SPARK-26402][SQL] 
Canonicalization on GetStructField 
URL: https://github.com/apache/spark/pull/23353#discussion_r243437882
 
 

 ##########
 File path: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala
 ##########
 @@ -2330,4 +2330,8 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils 
with TestHiveSingleton {
     }
   }
 
+  test("SPARK-26402: GetStructField with different names are semantically 
equal") {
+    sql("create table t (s struct<i: Int>) using json")
+    sql("select s.I from t group by s.i")
+  }
 
 Review comment:
   Nice!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to