"('srcid, mrkt, dstid, name, age', 'srcid, name');" +
"b = filter a by (srcid < 20 and age < 30) or (name == 'foo' and age > 40);" +
"store b into 'output';";
LogicalPlan plan = buildPlan(new PigServer(pc), query);
Rule rule = new PartitionFilterOptimizer("test");
List<OperatorPlan> matches = rule.match(plan);
if (matches != null) {
Transformer transformer = rule.getNewTransformer();
for (OperatorPlan m : matches) {
if (transformer.check(m)) {
transformer.transform(m);
}
}