Skip to content

Commit

Permalink
fix ReusedExchangeExec equals
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-toth committed Nov 11, 2019
1 parent 1634003 commit 04654f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ case class ReusedExchangeExec(override val output: Seq[Attribute], child: Exchan
extends LeafExecNode {

override def equals(that: Any): Boolean = that match {
case ReusedExchangeExec(output, child) => this.child == output && this.child.eq(child)
case ReusedExchangeExec(output, child) => this.output == output && this.child.id == child.id
case _ => false
}

override def hashCode: Int = Objects.hash(output, child)
override def hashCode: Int = Objects.hash(output, child.id.asInstanceOf[AnyRef])

override def supportsColumnar: Boolean = child.supportsColumnar

Expand Down

0 comments on commit 04654f3

Please sign in to comment.