dongjoon-hyun commented on a change in pull request #27675: [SPARK-30870][SQL]
Column pruning shouldn't alias a nested column if it means the whole structure
URL: https://github.com/apache/spark/pull/27675#discussion_r383473150
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/NestedColumnAliasingSuite.scala
##########
@@ -215,12 +215,7 @@ class NestedColumnAliasingSuite extends SchemaPruningTest
{
val optimized = Optimize.execute(query)
- val expected = nestedRelation
- .select(GetStructField('a, 0, Some("b")))
- .limit(5)
- .analyze
-
- comparePlans(optimized, expected)
+ comparePlans(optimized, query)
Review comment:
`[SPARK-26975][SQL] Support nested-column pruning over
limit/sample/repartition` is about that.
----------------------------------------------------------------
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]