final List<Integer> rightKeys = new ArrayList<Integer>();
optiqJoinCond = HiveOptiqUtil.projectNonColumnEquiConditions(
HiveProjectRel.DEFAULT_PROJECT_FACTORY, inputRels, leftJoinKeys, rightJoinKeys, 0,
leftKeys, rightKeys);
joinRel = new SemiJoinRel(cluster, cluster.traitSetOf(HiveRel.CONVENTION),
inputRels[0], inputRels[1], optiqJoinCond, ImmutableIntList.copyOf(leftKeys),
ImmutableIntList.copyOf(rightKeys));
} else {
joinRel = HiveJoinRel.getJoin(cluster, leftRel, rightRel, optiqJoinCond, optiqJoinType,
leftSemiJoin);