}
// This removes order-by only expressions from the projections.
HiveProjectRel replacementProjectRel = HiveProjectRel.create(obChild.getChild(), obChild
.getChildExps().subList(0, resultSchema.size()), obChild.getRowType().getFieldNames()
.subList(0, resultSchema.size()));
obRel.replaceInput(0, replacementProjectRel);
obRel.setInputRefToCallMap(inputRefToCallMap);
}
private static String generateInvalidSchemaMessage(ProjectRelBase topLevelProj,
List<FieldSchema> resultSchema, int fieldsForOB) {