File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,14 @@ abstract class Expression extends TreeNode[Expression] {
7777 }.toString
7878 }
7979
80- def semanticEquals (other : Expression ): Boolean = this .getClass == other.getClass &&
81- this .productIterator.zip(other.asInstanceOf [Product ].productIterator).forall {
80+ def semanticEquals (other : Expression ): Boolean = this .getClass == other.getClass && {
81+ val elements1 = this .productIterator.toSeq
82+ val elements2 = other.asInstanceOf [Product ].productIterator.toSeq
83+ elements1.length == elements2.length && elements1.zip(elements2).forall {
8284 case (e1 : Expression , e2 : Expression ) => e1 semanticEquals e2
8385 case (i1, i2) => i1 == i2
8486 }
87+ }
8588}
8689
8790abstract class BinaryExpression extends Expression with trees.BinaryNode [Expression ] {
You can’t perform that action at this time.
0 commit comments