gatorsmile commented on a change in pull request #27503: [SPARK-30761]SQL]
Nested column pruning should not prune on required child outputs in Generate
URL: https://github.com/apache/spark/pull/27503#discussion_r376755585
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/SchemaPruningSuite.scala
##########
@@ -333,6 +333,14 @@ abstract class SchemaPruningSuite
}
}
+ testSchemaPruning("select explode of nested field of array of struct and " +
+ "all remaining nested fields") {
Review comment:
Instead of fixing case by case, can we try to find all the possible cases?
Also, we need to have the unit test cases for these optimizer rules.
----------------------------------------------------------------
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]