} else if (r instanceof FilterRelBase) {
return isPartitionPredicate(expr, ((FilterRelBase) r).getChild());
} else if (r instanceof HiveTableScanRel) {
RelOptHiveTable table = (RelOptHiveTable) ((HiveTableScanRel) r).getTable();
BitSet cols = RelOptUtil.InputFinder.bits(expr);
return table.containsPartitionColumnsOnly(cols);
}
return false;
}
private SqlKind getOp(RexCall call) {