panbingkun commented on code in PR #41564:
URL: https://github.com/apache/spark/pull/41564#discussion_r1241363709
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala:
##########
@@ -116,7 +116,7 @@ abstract class LogicalPlan
def resolve(schema: StructType, resolver: Resolver): Seq[Attribute] = {
schema.map { field =>
resolve(field.name :: Nil, resolver).map {
- case a: AttributeReference => a
+ case a: AttributeReference => a.withMetadata(field.metadata)
Review Comment:
@cloud-fan It has been restored here, is it okay?
This logic will involve partitionColumns and dataColumns
--
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]