ihuzenko commented on a change in pull request #1981: DRILL-7583: Remove STOP status from operator outcome URL: https://github.com/apache/drill/pull/1981#discussion_r379445283
########## File path: exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/join/HashJoinBatch.java ########## @@ -679,67 +715,91 @@ public IterOutcome innerNext() { } /** - * In case an upstream data is no longer needed, send a kill and flush any remaining batch + * In case an upstream data is no longer needed, send a kill and flush any + * remaining batch * - * @param batch probe or build batch - * @param upstream which upstream - * @param isLeft is it the left or right + * @param batch + * probe or build batch + * @param upstream + * which upstream + * @param isLeft + * is it the left or right */ - private void killAndDrainUpstream(RecordBatch batch, IterOutcome upstream, boolean isLeft) { - batch.kill(true); - while (upstream == IterOutcome.OK_NEW_SCHEMA || upstream == IterOutcome.OK) { + private void killAndDrainUpstream(RecordBatch batch, IterOutcome upstream, + boolean isLeft) { Review comment: it would be better to accept int and pass HashJoinHelper.RIGHT_INPUT or HashJoinHelper.LEFT_INPUT when invoked. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services