Skip to content

Commit

Permalink
In LimitRecordBatch, free incoming batch mem when upstream outcome is…
Browse files Browse the repository at this point in the history
… NONE.
  • Loading branch information
jnturton committed Dec 23, 2022
1 parent eae8d48 commit 5cee148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public IterOutcome innerNext() {
upStream = next(incoming);
}
// If EMIT that means leaf operator is UNNEST, in this case refresh the limit states and return EMIT.
if (upStream == EMIT) {
if (upStream == EMIT || upStream == NONE) {
// Clear the memory for the incoming batch
VectorAccessibleUtilities.clear(incoming);

Expand Down

0 comments on commit 5cee148

Please sign in to comment.