We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf044de commit 035ea67Copy full SHA for 035ea67
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/AttributeSet.scala
@@ -58,7 +58,8 @@ class AttributeSet private (val baseSet: Set[AttributeEquals])
58
59
/** Returns true if the members of this AttributeSet and other are the same. */
60
override def equals(other: Any) = other match {
61
- case otherSet: AttributeSet => baseSet.map(_.a).forall(otherSet.contains)
+ case otherSet: AttributeSet =>
62
+ otherSet.size == baseSet.size && baseSet.map(_.a).forall(otherSet.contains)
63
case _ => false
64
}
65
0 commit comments