Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
fix memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
rui-mo committed Jun 25, 2021
1 parent bb3c5ef commit 46d7465
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ class ColumnarConditionProjector(
// This projector is used to do filtering only.
val filteProjector = createProjector(
resultArrowSchema, resultArrowSchema, filterPrepareList, withCond)
val outputBatch = filteProjector.evaluate(
ConverterUtils.createArrowRecordBatch(columnarBatch),
numRows, selectionVector)
val cb = ConverterUtils.createArrowRecordBatch(columnarBatch)
val outputBatch = filteProjector.evaluate(cb, numRows, selectionVector)
ConverterUtils.releaseArrowRecordBatch(cb)
resColumnarBatch = outputBatch
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,8 @@ class ConditionedProbeKernel::Impl {
* If this config is false, there are three cases:
(1) If key from stream side contains null, this row will be joined;
(2) Else if the key from stream side cannot be found in build side, this row will be
joined; (3) Else the key from stream side does not statisfy the condition, this row
joined;
(3) Else the key from stream side does not statisfy the condition, this row
will be joined.
*/

Expand Down

0 comments on commit 46d7465

Please sign in to comment.