Skip to content

Commit

Permalink
[OAP-1541][oap-native-sql] TreeNode children not replaced by columnar…
Browse files Browse the repository at this point in the history
… operators (#1555)

Also, add ColumnarPluginTest.

Closes #1541
  • Loading branch information
zhztheplayer authored Aug 3, 2020
1 parent eead62a commit 54a2fb1
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,14 @@ class ColumnarBatchScanExec(output: Seq[AttributeReference], @transient scan: Sc
r
}
}

override def canEqual(other: Any): Boolean = other.isInstanceOf[ColumnarBatchScanExec]

override def equals(other: Any): Boolean = other match {
case that: ColumnarBatchScanExec =>
(that canEqual this) && (that eq this)
case _ => false
}

override def hashCode(): Int = System.identityHashCode(this)
}
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,14 @@ class ColumnarBroadcastHashJoinExec(
new CloseableColumnBatchIterator(vjoinResult)
}
}

override def canEqual(other: Any): Boolean = other.isInstanceOf[ColumnarBroadcastHashJoinExec]

override def equals(other: Any): Boolean = other match {
case that: ColumnarBroadcastHashJoinExec =>
(that canEqual this) && (that eq this)
case _ => false
}

override def hashCode(): Int = System.identityHashCode(this)
}
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,14 @@ class ColumnarHashAggregateExec(
}
}

override def canEqual(other: Any): Boolean = other.isInstanceOf[ColumnarHashAggregateExec]

override def equals(other: Any): Boolean = other match {
case that: ColumnarHashAggregateExec =>
(that canEqual this) && (that eq this)
case _ => false
}

override def hashCode(): Int = System.identityHashCode(this)

}
Original file line number Diff line number Diff line change
Expand Up @@ -163,4 +163,14 @@ class ColumnarShuffledHashJoinExec(
new CloseableColumnBatchIterator(vjoinResult)
}
}

override def canEqual(other: Any): Boolean = other.isInstanceOf[ColumnarShuffledHashJoinExec]

override def equals(other: Any): Boolean = other match {
case that: ColumnarShuffledHashJoinExec =>
(that canEqual this) && (that eq this)
case _ => false
}

override def hashCode(): Int = System.identityHashCode(this)
}
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,14 @@ class ColumnarSortExec(
res
}
}

override def canEqual(other: Any): Boolean = other.isInstanceOf[ColumnarSortExec]

override def equals(other: Any): Boolean = other match {
case that: ColumnarSortExec =>
(that canEqual this) && (that eq this)
case _ => false
}

override def hashCode(): Int = System.identityHashCode(this)
}

0 comments on commit 54a2fb1

Please sign in to comment.