peter-toth commented on code in PR #52305:
URL: https://github.com/apache/spark/pull/52305#discussion_r2341242682


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/basicPhysicalOperators.scala:
##########
@@ -708,7 +708,9 @@ case class UnionExec(children: Seq[SparkPlan]) extends 
SparkPlan {
     val firstAttrs = children.head.output
     val attributesMap = children.tail.map(_.output).map { otherAttrs =>
       otherAttrs.zip(firstAttrs).map { case (attr, firstAttr) =>
-        attr -> firstAttr
+        // Remove metadata and qualifier before comparing, as they may be 
different

Review Comment:
   Should we use `AttributeMap` instead of manual canonicalization?



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to