Hi.one minor issue.
-RelationGetIndexPredicate(Relation relation)+RelationGetIndexPredicate(Relation relation, bool need_modify)need_modify name may not be that good IMHO, but so far I can only comeup with are "raw_expr", "is_raw".