viirya commented on a change in pull request #28988:
URL: https://github.com/apache/spark/pull/28988#discussion_r449903010
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/SchemaPruningSuite.scala
##########
@@ -497,6 +497,18 @@ abstract class SchemaPruningSuite
Row(Row("Janet", null, "Jones"), "Jones") ::Nil)
}
+ testSchemaPruning("SPARK-32163: nested pruning should work even with
cosmetic variations") {
+ withTempView("contact_alias") {
+ sql("select * from contacts")
+ .repartition(100, col("name.first"), col("name.last"))
Review comment:
This test case is only for master branch. However this issue can happen
in branch-3.0 too. I added another new test here, which is for branch-3.0.
But when we backport this to branch-3.0, we need to remove first test case
as it will fail on `checkScan(query,
"struct<name:struct<first:string,last:string>>")`, because branch-3.0 doesn't
prune for repartition by expression.
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]