RelMetadataQuery.getPulledUpPredicates(child);
List<RexNode> projectPullUpPredicates = new ArrayList<RexNode>();
BitSet columnsMapped = new BitSet(child.getRowType().getFieldCount());
Mapping m = Mappings.create(MappingType.PARTIAL_FUNCTION,
child.getRowType().getFieldCount(),
project.getRowType().getFieldCount());
for (Ord<RexNode> o : Ord.zip(project.getProjects())) {
if (o.e instanceof RexInputRef) {
int sIdx = ((RexInputRef) o.e).getIndex();
m.set(sIdx, o.i);
columnsMapped.set(sIdx);
}
}
// Go over childPullUpPredicates. If a predicate only contains columns in