cloud-fan commented on a change in pull request #30488:
URL: https://github.com/apache/spark/pull/30488#discussion_r534091814
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala
##########
@@ -167,7 +170,12 @@ case class Alias(child: Expression, name: String)(
override def metadata: Metadata = {
explicitMetadata.getOrElse {
child match {
- case named: NamedExpression => named.metadata
+ case named: NamedExpression =>
+ new MetadataBuilder()
+ .withMetadata(named.metadata)
+ .remove(deniedMetadataKeys: _*)
Review comment:
Do we really need a new public API for it? Can we just use a loop here?
----------------------------------------------------------------
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]