aboutsummaryrefslogtreecommitdiff
path: root/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/LateralJoinBatch.java
diff options
context:
space:
mode:
authorBen-Zvi <bben-zvi@mapr.com>2019-03-04 21:05:32 -0800
committerSorabh Hamirwasia <sorabh@apache.org>2019-03-14 22:25:20 -0700
commit3b85694be4c37bb217366287c182d50ceadda4ab (patch)
treef7237d8a32603994353d9a9bbb176bb1876a8068 /exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/LateralJoinBatch.java
parentd22e68b83d1d0cc0539d79ae0cb3aa70ae3242ad (diff)
DRILL-6707: Update target outgoing batch row count between current position and allocated size
Diffstat (limited to 'exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/LateralJoinBatch.java')
-rw-r--r--exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/LateralJoinBatch.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/LateralJoinBatch.java b/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/LateralJoinBatch.java
index 735f11f36..c916c95da 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/LateralJoinBatch.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/LateralJoinBatch.java
@@ -1182,7 +1182,9 @@ public class LateralJoinBatch extends AbstractBinaryRecordBatch<LateralJoinPOP>
// For cases where all the previous input were consumed and send with previous output batch. But now we are building
// a new output batch with new incoming then it will not cause any problem since outputIndex will be 0
- final int newOutputRowCount = batchMemoryManager.update(inputIndex, outputIndex);
+ batchMemoryManager.update(inputIndex, outputIndex);
+ final int newOutputRowCount = batchMemoryManager.getCurrentOutgoingMaxRowCount();
+
if (isRecordBatchStatsLoggingEnabled()) {
RecordBatchIOType type = inputIndex == LEFT_INDEX ? RecordBatchIOType.INPUT_LEFT : RecordBatchIOType.INPUT_RIGHT;