/* Traverse the tree and replace the convert_from, convert_to function to actual implementations
* Eg: convert_from(EXPR, 'JSON') be converted to convert_fromjson(EXPR);
* TODO: Ideally all function rewrites would move here instead of DrillOptiq
*/
rel = rel.accept(new RewriteProjectRel(planner.getTypeFactory(), context.getDrillOperatorTable()));
log("Optiq Logical", rel);
DrillRel drel = convertToDrel(rel);
log("Drill Logical", drel);
Prel prel = convertToPrel(drel);
log("Drill Physical", prel);