Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer committed Jun 7, 2024
1 parent 2cdeed7 commit f74d0ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ case class ColumnarSubqueryBroadcastExec(
val relation = child.executeBroadcast[Any]().value
relation match {
case b: BuildSideRelation =>
// Transform columnar broadcast value to Array[InternalRow] by key.
b.transform(buildKeys(index)).distinct
case h: HashedRelation =>
val (iter, expr) = if (h.isInstanceOf[LongHashedRelation]) {
Expand All @@ -85,7 +86,6 @@ case class ColumnarSubqueryBroadcastExec(
h.keys(),
BoundReference(index, buildKeys(index).dataType, buildKeys(index).nullable))
}

val proj = UnsafeProjection.create(expr)
val keyIter = iter.map(proj).map(_.copy())
keyIter.toArray[InternalRow].distinct
Expand Down

0 comments on commit f74d0ab

Please sign in to comment.