used sourceRelation instead of table attribute in planner

can this case be handled in a different way so that the whereClause on the querySpec can be left as final and doesn't need to be changed?