viirya commented on a change in pull request #27056: [SPARK-27217][SQL] Nested 
schema pruning with Aggregation
URL: https://github.com/apache/spark/pull/27056#discussion_r362932729
 
 

 ##########
 File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/SchemaPruningSuite.scala
 ##########
 @@ -299,6 +299,11 @@ abstract class SchemaPruningSuite
     checkAnswer(query, Row("Y.", 1) :: Row("X.", 1) :: Row(null, 2) :: 
Row(null, 2) :: Nil)
   }
 
+  testSchemaPruning("SPARK-27217: Push nested column when used in Aggregate") {
+    val query = sql("select sum(employer.id) from contacts")
+    checkScan(query, "struct<employer:struct<id:INT>>")
+  }
 
 Review comment:
   I think this is not a bug. We may not need a JIRA ticket prefix.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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