Skip to content

Commit

Permalink
Fixes a leak for the empty nlj iterator (#11832)
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Bellina <[email protected]>
  • Loading branch information
abellina authored Dec 8, 2024
1 parent fb2f72d commit 3449c8a
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -658,11 +658,15 @@ abstract class GpuBroadcastNestedLoopJoinExecBase(

localJoinType match {
case LeftOuter if spillableBuiltBatch.numRows == 0 =>
new EmptyOuterNestedLoopJoinIterator(streamedIter, spillableBuiltBatch.dataTypes,
true)
withResource(spillableBuiltBatch) { _ =>
new EmptyOuterNestedLoopJoinIterator(streamedIter, spillableBuiltBatch.dataTypes,
true)
}
case RightOuter if spillableBuiltBatch.numRows == 0 =>
new EmptyOuterNestedLoopJoinIterator(streamedIter, spillableBuiltBatch.dataTypes,
false)
withResource(spillableBuiltBatch) { _ =>
new EmptyOuterNestedLoopJoinIterator(streamedIter, spillableBuiltBatch.dataTypes,
false)
}
case _ =>
new CrossJoinIterator(
spillableBuiltBatch,
Expand Down

0 comments on commit 3449c8a

Please sign in to comment.