viirya commented on a change in pull request #35270:
URL: https://github.com/apache/spark/pull/35270#discussion_r790205037
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala
##########
@@ -172,7 +172,7 @@ case class Alias(child: Expression, name: String)(
val builder = new MetadataBuilder().withMetadata(named.metadata)
nonInheritableMetadataKeys.foreach(builder.remove)
builder.build()
-
+ case structField: GetStructField => structField.metadata
Review comment:
Don't we need to remove keys in `nonInheritableMetadataKeys`?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]