return; DrillRelOptUtil.InputRefVisitor collectRefs = new DrillRelOptUtil.InputRefVisitor(); for (RexNode exp: origProj.getChildExps()) { exp.accept(collectRefs); for (RexInputRef inputRef : collectRefs.getInputRefs()) { if (inputRef.getIndex() == correlationIndex) { return;