viirya commented on a change in pull request #34038:
URL: https://github.com/apache/spark/pull/34038#discussion_r714202853
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala
##########
@@ -327,7 +327,7 @@ case class Union(
child.output.length == children.head.output.length &&
// compare the data types with the first child
child.output.zip(children.head.output).forall {
- case (l, r) => l.dataType.sameType(r.dataType)
+ case (l, r) => DataType.equalsStructurally(l.dataType, r.dataType,
true)
Review comment:
`DataType.equalsStructurally` still check data type equality, it just
ignores field name difference.
--
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]